Skip to content

Commit

Permalink
bug fix: fix session mountpoint for php when using cloudlinux
Browse files Browse the repository at this point in the history
  • Loading branch information
usmannasir committed Jan 4, 2024
1 parent 534ed44 commit bee6bb1
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions CLManager/CageFS.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,26 @@ def submitCageFSInstall():
writeToFile.write('CLInstalled')
writeToFile.close()



#### mount session save paths

if os.path.exists('/etc/cagefs/cagefs.mp'):

from managePHP.phpManager import PHPManager
php_versions = PHPManager.findPHPVersions()

for php in php_versions:
PHPVers = PHPManager.getPHPString(php)
line = f'@/var/lib/lsphp/session/lsphp{PHPVers},700\n'

WriteToFile = open('/etc/cagefs/cagefs.mp', 'a')
WriteToFile.write(line)
WriteToFile.close()

command = 'cagefsctl --remount-all'
ServerStatusUtil.executioner(command, statusFile)

logging.CyberCPLogFileWriter.statusWriter(ServerStatusUtil.lswsInstallStatusPath,
"Packages successfully installed.[200]\n", 1)

Expand Down

0 comments on commit bee6bb1

Please sign in to comment.