Skip to content

Commit

Permalink
bug fix" minor improvement to create local backup
Browse files Browse the repository at this point in the history
  • Loading branch information
usmannasir committed Jun 10, 2020
1 parent 6cfac06 commit f3ab3e5
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions plogical/backupSchedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down

0 comments on commit f3ab3e5

Please sign in to comment.