This commit is contained in:
rperper
2018-10-30 15:58:45 -04:00
parent 9b2a1b96f3
commit 6f67501bb4

View File

@@ -1212,7 +1212,7 @@ def Main(cwd, mysql, distro):
InstallCyberPanel.mysql_Root_password = randomPassword.generate_pass()
file_name = '/etc/cyberpanel/mysqlPassword'
if access(file_name, os.F_OK):
if os.access(file_name, os.F_OK):
password = open(file_name, 'r')
InstallCyberPanel.mysql_Root_password = password.readline()
else: