ftp changes

This commit is contained in:
Usman Nasir
2020-04-17 05:53:06 +05:00
parent 57beb1ccbb
commit c44404e4b9

View File

@@ -330,14 +330,17 @@ 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 pureftpd to system startup
command = "systemctl enable " + install.preFlightsChecks.pureFTPDServiceName(self.distro)