mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-12 16:26:12 +01:00
Limit access for a couple of other files
This commit is contained in:
@@ -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!")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user