mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-06 21:35:55 +01:00
security fix: CP-01: Installation
This commit is contained in:
@@ -652,6 +652,9 @@ class preFlightsChecks:
|
|||||||
|
|
||||||
rainloopinipath = '/usr/local/lscp/cyberpanel/rainloop/data/_data_/_default_/configs/application.ini'
|
rainloopinipath = '/usr/local/lscp/cyberpanel/rainloop/data/_data_/_default_/configs/application.ini'
|
||||||
|
|
||||||
|
command = 'chmod 600 /usr/local/CyberCP/public/rainloop.php'
|
||||||
|
preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR)
|
||||||
|
|
||||||
###
|
###
|
||||||
|
|
||||||
def install_unzip(self):
|
def install_unzip(self):
|
||||||
@@ -2289,8 +2292,6 @@ def main():
|
|||||||
if args.redis != None:
|
if args.redis != None:
|
||||||
checks.installRedis()
|
checks.installRedis()
|
||||||
|
|
||||||
checks.fixCyberPanelPermissions()
|
|
||||||
|
|
||||||
if args.postfix != None:
|
if args.postfix != None:
|
||||||
checks.enableDisableEmail(args.postfix.lower())
|
checks.enableDisableEmail(args.postfix.lower())
|
||||||
else:
|
else:
|
||||||
@@ -2350,6 +2351,8 @@ echo $oConfig->Save() ? 'Done' : 'Error';
|
|||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
checks.fixCyberPanelPermissions()
|
||||||
|
|
||||||
logging.InstallLog.writeToFile("CyberPanel installation successfully completed!,80")
|
logging.InstallLog.writeToFile("CyberPanel installation successfully completed!,80")
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -2070,6 +2070,9 @@ echo $oConfig->Save() ? 'Done' : 'Error';
|
|||||||
command = '/usr/local/lsws/lsphp72/bin/php /usr/local/CyberCP/public/rainloop.php'
|
command = '/usr/local/lsws/lsphp72/bin/php /usr/local/CyberCP/public/rainloop.php'
|
||||||
Upgrade.executioner(command, 0)
|
Upgrade.executioner(command, 0)
|
||||||
|
|
||||||
|
command = 'chmod 600 /usr/local/CyberCP/public/rainloop.php'
|
||||||
|
Upgrade.executioner(command, 0)
|
||||||
|
|
||||||
Upgrade.stdOut("Permissions updated.")
|
Upgrade.stdOut("Permissions updated.")
|
||||||
|
|
||||||
except BaseException as msg:
|
except BaseException as msg:
|
||||||
|
|||||||
Reference in New Issue
Block a user