mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-11 15:56:11 +01:00
merge 2.0.0
This commit is contained in:
@@ -420,7 +420,7 @@ class FileManager:
|
|||||||
|
|
||||||
ProcessUtilities.executioner(command, website.externalApp)
|
ProcessUtilities.executioner(command, website.externalApp)
|
||||||
|
|
||||||
self.changeOwner(self.data['extractionLocation'])
|
self.fixPermissions(domainName)
|
||||||
|
|
||||||
json_data = json.dumps(finalData)
|
json_data = json.dumps(finalData)
|
||||||
return HttpResponse(json_data)
|
return HttpResponse(json_data)
|
||||||
|
|||||||
@@ -330,7 +330,6 @@ class InstallCyberPanel:
|
|||||||
|
|
||||||
def installPureFTPD(self):
|
def installPureFTPD(self):
|
||||||
if self.distro == ubuntu:
|
if self.distro == ubuntu:
|
||||||
|
|
||||||
command = 'DEBIAN_FRONTEND=noninteractive apt install pure-ftpd-mysql -y'
|
command = 'DEBIAN_FRONTEND=noninteractive apt install pure-ftpd-mysql -y'
|
||||||
os.system(command)
|
os.system(command)
|
||||||
|
|
||||||
@@ -354,7 +353,6 @@ class InstallCyberPanel:
|
|||||||
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
|
####### Install pureftpd to system startup
|
||||||
|
|
||||||
command = "systemctl enable " + install.preFlightsChecks.pureFTPDServiceName(self.distro)
|
command = "systemctl enable " + install.preFlightsChecks.pureFTPDServiceName(self.distro)
|
||||||
|
|||||||
@@ -193,6 +193,9 @@ class remoteTransferUtilities:
|
|||||||
command = "sudo scp -o StrictHostKeyChecking=no -i /root/.ssh/cyberpanel " + completedPathToSend + " root@" + IPAddress + ":/home/backup/transfer-" + folderNumber + "/"
|
command = "sudo scp -o StrictHostKeyChecking=no -i /root/.ssh/cyberpanel " + completedPathToSend + " root@" + IPAddress + ":/home/backup/transfer-" + folderNumber + "/"
|
||||||
subprocess.call(shlex.split(command), stdout=writeToFile)
|
subprocess.call(shlex.split(command), stdout=writeToFile)
|
||||||
|
|
||||||
|
if os.path.exists(ProcessUtilities.debugPath):
|
||||||
|
logging.CyberCPLogFileWriter.writeToFile(command)
|
||||||
|
|
||||||
os.remove(completedPathToSend)
|
os.remove(completedPathToSend)
|
||||||
|
|
||||||
except BaseException as msg:
|
except BaseException as msg:
|
||||||
|
|||||||
Reference in New Issue
Block a user