mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-07 22:06:05 +01:00
ftp changes
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user