mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-18 03:01:01 +01:00
bug fix: permissions on ubuntu
This commit is contained in:
@@ -849,7 +849,12 @@ class backupUtilities:
|
||||
|
||||
installUtilities.reStartLiteSpeed()
|
||||
|
||||
command = "chown -R " + externalApp + ":nobody" " " + websiteHome
|
||||
if ProcessUtilities.decideDistro() == ProcessUtilities.centos:
|
||||
groupName = 'nobody'
|
||||
else:
|
||||
groupName = 'nogroup'
|
||||
|
||||
command = "chown -R " + externalApp + ":%s " % (groupName) + websiteHome
|
||||
cmd = shlex.split(command)
|
||||
subprocess.call(cmd)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user