bug fix: permissions on ubuntu

This commit is contained in:
Usman Nasir
2020-04-03 11:28:27 +05:00
parent 4db2168731
commit d0fd631677
6 changed files with 107 additions and 21 deletions

View File

@@ -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)