From dc5a7844edf5a9f19c521cf0f46ff3c7ecfecfd6 Mon Sep 17 00:00:00 2001 From: rperper Date: Tue, 30 Oct 2018 12:14:56 -0400 Subject: [PATCH] Fix bugs in pure-ftpd config --- install/installCyberPanel.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/install/installCyberPanel.py b/install/installCyberPanel.py index 432cd29c6..789a5c3f6 100644 --- a/install/installCyberPanel.py +++ b/install/installCyberPanel.py @@ -738,9 +738,18 @@ class InstallCyberPanel: ############## Start pureftpd ###################### try: - + self.stdOut("Correct configuration with pure-ftpd") count = 0 + try: + ok.mkdir("/etc/pure-ftpd/conf") + os.mkdir("/etc/pure-ftpd/auth") + except OSError as e: + pass + command = 'cp /etc/pure-ftpd/pure-ftpd.conf /etc/pure-ftpd/conf/pure-ftpd.conf' + res = subprocess.call(shlex.split(command)) + + self.stdOut("Start the pure-ftp service") while(1): cmd = []