mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-03-05 11:50:50 +01:00
permissions fix
This commit is contained in:
@@ -677,6 +677,11 @@ class preFlightsChecks:
|
||||
command = 'chmod 700 %s' % ('/home/cyberpanel')
|
||||
preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR)
|
||||
|
||||
destPrivKey = "/usr/local/lscp/conf/key.pem"
|
||||
|
||||
command = 'chmod 600 %s' % (destPrivKey)
|
||||
preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR)
|
||||
|
||||
###
|
||||
|
||||
def install_unzip(self):
|
||||
|
||||
@@ -2122,6 +2122,11 @@ echo $oConfig->Save() ? 'Done' : 'Error';
|
||||
command = 'chmod 700 %s' % ('/home/cyberpanel')
|
||||
Upgrade.executioner(command, 0)
|
||||
|
||||
destPrivKey = "/usr/local/lscp/conf/key.pem"
|
||||
|
||||
command = 'chmod 600 %s' % (destPrivKey)
|
||||
Upgrade.executioner(command, 0)
|
||||
|
||||
Upgrade.stdOut("Permissions updated.")
|
||||
|
||||
except BaseException as msg:
|
||||
|
||||
@@ -460,6 +460,10 @@ class virtualHostUtilities:
|
||||
return 0, retValues[1]
|
||||
|
||||
|
||||
command = 'chmod 600 %s' % (destPrivKey)
|
||||
ProcessUtilities.normalExecutioner(command)
|
||||
|
||||
|
||||
## removing old certs for lscpd
|
||||
if os.path.exists(destPrivKey):
|
||||
os.remove(destPrivKey)
|
||||
|
||||
Reference in New Issue
Block a user