diff --git a/install/installCyberPanel.py b/install/installCyberPanel.py index 4d1e37dfe..91d2c5dc0 100644 --- a/install/installCyberPanel.py +++ b/install/installCyberPanel.py @@ -841,7 +841,7 @@ class InstallCyberPanel: if os.path.exists(ftpdPath): shutil.rmtree(ftpdPath) if mysql == 'Two': - shutil.copytree("pure-ftpd",ftpdPath) + shutil.copytree("pure-ftpd", ftpdPath) else: shutil.copytree("pure-ftpd-one", ftpdPath) else: @@ -873,6 +873,9 @@ class InstallCyberPanel: os.fchmod(writeDataToFile.fileno(), stat.S_IRUSR | stat.S_IWUSR) writeDataToFile.close() + os.lchmod(ftpdPath + '/pureftpd-ldap.conf', stat.S_IRUSR | stat.S_IWUSR) + os.lchmod(ftpdPath + '/pureftpd-pgsql.conf', stat.S_IRUSR | stat.S_IWUSR) + logging.InstallLog.writeToFile("PureFTPD configured!") InstallCyberPanel.stdOut("PureFTPD configured!")