Skip to content
Permalink
Browse files
bug fix" minor improvement to create local backup
  • Loading branch information
usmannasir committed Jun 10, 2020
1 parent 6cfac06 commit f3ab3e5baa4efd4e2c6f31856989cbae005511ae
Showing 1 changed file with 7 additions and 2 deletions.
@@ -72,6 +72,8 @@ def createLocalBackup(virtualHost, backupLogPath):
time.sleep(5)
schedulerPath = '/home/cyberpanel/%s-backup.txt' % (virtualHost)

killCounter = 0

while (1):
diff = datetime.now() - startingTime

@@ -118,8 +120,11 @@ def createLocalBackup(virtualHost, backupLogPath):
else:
return 0, 'Backup process killed without reporting any error.'
else:

return 0, 'Backup process killed without reporting any error.'
if killCounter == 1:
return 0, 'Backup process killed without reporting any error.'
else:
time.sleep(10)
killCounter = 1

## file name read ends

0 comments on commit f3ab3e5

Please sign in to comment.