mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-02-05 06:09:06 +01:00
Back to pure-ftpd and create some dummy directories (Ubuntu only)
This commit is contained in:
@@ -50,7 +50,7 @@ class preFlightsChecks:
|
||||
@staticmethod
|
||||
def pureFTPDServiceName(distro):
|
||||
if distro == ubuntu:
|
||||
return 'pure-ftpd-mysql'
|
||||
return 'pure-ftpd'
|
||||
return 'pure-ftpd'
|
||||
|
||||
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user