Back to pure-ftpd and create some dummy directories (Ubuntu only)

This commit is contained in:
rperper
2018-11-07 09:56:45 -05:00
parent 07721c0f57
commit 3d26220341
2 changed files with 8 additions and 1 deletions

View File

@@ -50,7 +50,7 @@ class preFlightsChecks:
@staticmethod
def pureFTPDServiceName(distro):
if distro == ubuntu:
return 'pure-ftpd-mysql'
return 'pure-ftpd'
return 'pure-ftpd'

View File

@@ -849,6 +849,13 @@ class InstallCyberPanel:
else:
shutil.copytree("pure-ftpd-one", ftpdPath)
if self.distro == ubuntu:
try:
os.mkdir('/etc/pure-ftpd/conf')
os.mkdir('/etc/pure-ftpd/auth')
except OSError as err:
self.stdOut("Error creating extra pure-ftpd directories: " + str(err), ". Should be ok", 1)
data = open(ftpdPath+"/pureftpd-mysql.conf","r").readlines()
writeDataToFile = open(ftpdPath+"/pureftpd-mysql.conf","w")