This commit is contained in:
Usman Nasir
2019-08-13 16:27:56 +05:00
parent 4d4b0c7e03
commit d495ce4160
49 changed files with 26567 additions and 15706 deletions

View File

@@ -675,6 +675,9 @@ class BackupManager:
command = "mv " + tempCronPath + " " + path
ProcessUtilities.executioner(command)
command = 'chown root:root %s' % (path)
ProcessUtilities.executioner(command)
command = "systemctl restart crond"
ProcessUtilities.executioner(command)
@@ -707,6 +710,9 @@ class BackupManager:
command = "sudo mv " + tempCronPath + " " + path
ProcessUtilities.executioner(command)
command = 'chown root:root %s' % (path)
ProcessUtilities.executioner(command)
command = "sudo systemctl restart crond"
ProcessUtilities.executioner(command)
@@ -762,8 +768,10 @@ class BackupManager:
command = "sudo mv " + tempCronPath + " " + path
ProcessUtilities.executioner(command)
command = "sudo systemctl restart crond"
command = 'chown root:root %s' % (path)
ProcessUtilities.executioner(command)
command = "sudo systemctl restart crond"
ProcessUtilities.executioner(command)
destination = dest.objects.get(destLoc=backupDest)