mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-08 14:26:16 +01:00
bug fix: fix session mountpoint for php when using cloudlinux
This commit is contained in:
@@ -108,6 +108,26 @@ class CageFS:
|
||||
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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user