mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-14 17:26:17 +01:00
add lsphp82 for upgrading as well
This commit is contained in:
@@ -557,6 +557,14 @@ class backupUtilities:
|
||||
command = f'tar -czf {backupPath}/{backupName}.tar.gz -C {tempStoragePath} .'
|
||||
ProcessUtilities.executioner(command, externalApp, True)
|
||||
|
||||
### remove leftover storages
|
||||
|
||||
command = f'rm -rf {tempStoragePath}'
|
||||
ProcessUtilities.executioner(command, externalApp)
|
||||
|
||||
command = f'rm -rf {CPHomeStorage}'
|
||||
ProcessUtilities.executioner(command)
|
||||
|
||||
###
|
||||
|
||||
backupObs = Backups.objects.filter(fileName=backupName)
|
||||
@@ -594,6 +602,12 @@ class backupUtilities:
|
||||
command = f"echo '%s. [511:BackupRoot][[5009]]' > {status}"
|
||||
ProcessUtilities.executioner(command, externalApp)
|
||||
|
||||
command = f'rm -rf {tempStoragePath}'
|
||||
ProcessUtilities.executioner(command, externalApp)
|
||||
|
||||
command = f'rm -rf {CPHomeStorage}'
|
||||
ProcessUtilities.executioner(command)
|
||||
|
||||
@staticmethod
|
||||
def initiateBackup(tempStoragePath, backupName, backupPath):
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user