mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-12 16:26:12 +01:00
Set mode for any files which contain an install created password
This commit is contained in:
@@ -9,6 +9,7 @@ import randomPassword
|
||||
import errno
|
||||
import MySQLdb as mariadb
|
||||
import install
|
||||
import stat
|
||||
|
||||
#distros
|
||||
centos=0
|
||||
@@ -869,6 +870,7 @@ class InstallCyberPanel:
|
||||
else:
|
||||
writeDataToFile.writelines(items)
|
||||
|
||||
os.fchmod(writeDataToFile, stat.S_IRUSR | stat.S_IWUSR)
|
||||
writeDataToFile.close()
|
||||
|
||||
logging.InstallLog.writeToFile("PureFTPD configured!")
|
||||
@@ -1028,6 +1030,8 @@ class InstallCyberPanel:
|
||||
else:
|
||||
writeDataToFile.writelines(items)
|
||||
|
||||
os.fchmod(writeDataToFile, stat.S_IRUSR | stat.S_IWUSR)
|
||||
|
||||
writeDataToFile.close()
|
||||
|
||||
logging.InstallLog.writeToFile("PowerDNS configured!")
|
||||
@@ -1247,6 +1251,8 @@ def Main(cwd, mysql, distro):
|
||||
password = open(file_name, "w")
|
||||
password.writelines(InstallCyberPanel.mysql_Root_password)
|
||||
|
||||
os.fchmod(password, stat.S_IRUSR | stat.S_IWUSR)
|
||||
|
||||
password.close()
|
||||
|
||||
if distro == centos:
|
||||
|
||||
Reference in New Issue
Block a user