As requested by Usman, removed permission changes made earlier

This commit is contained in:
rperper
2018-11-12 14:53:10 -05:00
parent cbf862e69a
commit 53110b2f85
2 changed files with 18 additions and 17 deletions

View File

@@ -947,13 +947,13 @@ class InstallCyberPanel:
else:
writeDataToFile.writelines(items)
if self.distro == ubuntu:
os.fchmod(writeDataToFile.fileno(), stat.S_IRUSR | stat.S_IWUSR)
#if self.distro == ubuntu:
# os.fchmod(writeDataToFile.fileno(), stat.S_IRUSR | stat.S_IWUSR)
writeDataToFile.close()
if self.distro == ubuntu:
os.chmod(ftpdPath + '/pureftpd-ldap.conf', stat.S_IRUSR | stat.S_IWUSR)
os.chmod(ftpdPath + '/pureftpd-pgsql.conf', stat.S_IRUSR | stat.S_IWUSR)
#if self.distro == ubuntu:
# os.chmod(ftpdPath + '/pureftpd-ldap.conf', stat.S_IRUSR | stat.S_IWUSR)
# os.chmod(ftpdPath + '/pureftpd-pgsql.conf', stat.S_IRUSR | stat.S_IWUSR)
if self.distro == ubuntu:
command = 'apt install pure-ftpd-mysql -y'
@@ -1127,8 +1127,8 @@ class InstallCyberPanel:
writeDataToFile.writelines(dataWritten)
else:
writeDataToFile.writelines(items)
if self.distro == ubuntu:
os.fchmod(writeDataToFile.fileno(), stat.S_IRUSR | stat.S_IWUSR)
#if self.distro == ubuntu:
# os.fchmod(writeDataToFile.fileno(), stat.S_IRUSR | stat.S_IWUSR)
writeDataToFile.close()