bug fix: remove not needed php on cent8 and ub20

This commit is contained in:
Usman Nasir
2020-06-04 00:17:29 +05:00
parent 46a2bbe04c
commit eae48c98e6
3 changed files with 9 additions and 4 deletions

View File

@@ -37,7 +37,10 @@ class backupSchedule:
print(("[" + time.strftime("%m.%d.%Y_%H-%M-%S") + "] "+ message + "\n"))
file.close()
BackupJobLogs(owner=backupSchedule.backupLog, status=status, message="[" + time.strftime("%m.%d.%Y_%H-%M-%S") + "] "+ message).save()
if backupSchedule.backupLog == '':
pass
else:
BackupJobLogs(owner=backupSchedule.backupLog, status=status, message="[" + time.strftime("%m.%d.%Y_%H-%M-%S") + "] "+ message).save()
except IOError as msg:
return "Can not write to error file."