From c44404e4b99d44a5663bb2b95f10091f4fa7c841 Mon Sep 17 00:00:00 2001 From: Usman Nasir Date: Fri, 17 Apr 2020 05:53:06 +0500 Subject: [PATCH] ftp changes --- install/installCyberPanel.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/install/installCyberPanel.py b/install/installCyberPanel.py index 6d180848a..900c4c8f4 100755 --- a/install/installCyberPanel.py +++ b/install/installCyberPanel.py @@ -330,13 +330,16 @@ class InstallCyberPanel: def installPureFTPD(self): if self.distro == ubuntu: - command = 'apt install pure-ftpd-mysql -y' + command = 'DEBIAN_FRONTEND=noninteractive apt install pure-ftpd-mysql -y' + os.system(command) elif self.distro == centos: command = "yum install -y pure-ftpd" + install.preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR) elif self.distro == cent8: command = 'dnf --enablerepo=CyberPanel install pure-ftpd -y' + install.preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR) + - install.preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR) ####### Install pureftpd to system startup