mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-11 07:46:10 +01:00
fix some backup issues
This commit is contained in:
@@ -49,6 +49,10 @@ class BackupManager:
|
|||||||
def backupSite(self, request=None, userID=None, data=None):
|
def backupSite(self, request=None, userID=None, data=None):
|
||||||
currentACL = ACLManager.loadedACL(userID)
|
currentACL = ACLManager.loadedACL(userID)
|
||||||
websitesName = ACLManager.findAllSites(currentACL, userID)
|
websitesName = ACLManager.findAllSites(currentACL, userID)
|
||||||
|
|
||||||
|
command = 'chmod 755 /home/backup'
|
||||||
|
ProcessUtilities.executioner(command)
|
||||||
|
|
||||||
proc = httpProc(request, 'backup/backup.html', {'websiteList': websitesName}, 'createBackup')
|
proc = httpProc(request, 'backup/backup.html', {'websiteList': websitesName}, 'createBackup')
|
||||||
return proc.render()
|
return proc.render()
|
||||||
|
|
||||||
|
|||||||
@@ -316,8 +316,8 @@ team_drive =
|
|||||||
command = f"mkdir -p {self.data['BasePath']}"
|
command = f"mkdir -p {self.data['BasePath']}"
|
||||||
ProcessUtilities.executioner(command)
|
ProcessUtilities.executioner(command)
|
||||||
|
|
||||||
command = f"chmod 711 {self.data['BasePath']}"
|
#command = f"chmod 711 {self.data['BasePath']}"
|
||||||
ProcessUtilities.executioner(command)
|
#ProcessUtilities.executioner(command)
|
||||||
|
|
||||||
self.StartingTimeStamp = CPBackupsV2.FetchCurrentTimeStamp()
|
self.StartingTimeStamp = CPBackupsV2.FetchCurrentTimeStamp()
|
||||||
|
|
||||||
@@ -904,8 +904,8 @@ team_drive =
|
|||||||
command = f"mkdir -p {self.data['BasePath']}"
|
command = f"mkdir -p {self.data['BasePath']}"
|
||||||
ProcessUtilities.executioner(command)
|
ProcessUtilities.executioner(command)
|
||||||
|
|
||||||
command = f"chmod 711 {self.data['BasePath']}"
|
#command = f"chmod 711 {self.data['BasePath']}"
|
||||||
ProcessUtilities.executioner(command)
|
#ProcessUtilities.executioner(command)
|
||||||
|
|
||||||
self.StartingTimeStamp = CPBackupsV2.FetchCurrentTimeStamp()
|
self.StartingTimeStamp = CPBackupsV2.FetchCurrentTimeStamp()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user