From 0d6b7a9c4c981e69d415a8d0bd59660645f0d245 Mon Sep 17 00:00:00 2001 From: Usman Nasir Date: Mon, 3 Feb 2020 16:15:06 +0500 Subject: [PATCH] bug fix: function argument --- install/installCyberPanel.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/install/installCyberPanel.py b/install/installCyberPanel.py index b1155054c..c53605992 100755 --- a/install/installCyberPanel.py +++ b/install/installCyberPanel.py @@ -443,8 +443,6 @@ class InstallCyberPanel: command = 'echo %s > /etc/pure-ftpd/conf/ForcePassiveIP' % (self.publicip) subprocess.call(command, shell=True) - - command = 'systemctl restart pure-ftpd-mysql.service' install.preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR) @@ -569,7 +567,7 @@ class InstallCyberPanel: install.preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR) -def Main(cwd, mysql, distro, ent, serial = None, port = "8090", ftp = None, dns = None): +def Main(cwd, mysql, distro, ent, serial = None, port = "8090", ftp = None, dns = None, publicip = None): InstallCyberPanel.mysqlPassword = randomPassword.generate_pass() InstallCyberPanel.mysql_Root_password = randomPassword.generate_pass() @@ -603,7 +601,7 @@ def Main(cwd, mysql, distro, ent, serial = None, port = "8090", ftp = None, dns else: InstallCyberPanel.mysqlPassword = InstallCyberPanel.mysql_Root_password - installer = InstallCyberPanel("/usr/local/lsws/",cwd, distro, ent, serial, port, ftp, dns) + installer = InstallCyberPanel("/usr/local/lsws/",cwd, distro, ent, serial, port, ftp, dns, publicip) installer.installLiteSpeed() if ent == 0: