Compare commits

...

2 commits

Author SHA1 Message Date
Franzi 5b2e5fc838
bundles/backup-server: do not alert for one missing day of backups
Some checks failed
kunsi/bundlewrap/pipeline/head There was a failure building this commit
2022-01-09 08:26:08 +01:00
Franzi 5df546754f
bundles/pacman: fix install_gui package definition 2022-01-09 08:23:59 +01:00
2 changed files with 6 additions and 3 deletions

View file

@ -42,9 +42,12 @@ try:
datetime.fromtimestamp(last_snap).strftime('%Y-%m-%d %H:%M:%S'), datetime.fromtimestamp(last_snap).strftime('%Y-%m-%d %H:%M:%S'),
)) ))
if delta > (DAY_SECONDS * 2): # One day without backups is still okay. There may be fluctuations
# because of transfer speed, amount of data, changes in backup
# schedule etc.
if delta > (DAY_SECONDS * 3):
exit(2) exit(2)
elif delta > DAY_SECONDS: elif delta > (DAY_SECONDS * 2):
exit(1) exit(1)
else: else:
exit(0) exit(0)

View file

@ -79,7 +79,7 @@ pkg_pacman = {
} }
if node.metadata.get('pacman/install_gui', False): if node.metadata.get('pacman/install_gui', False):
pkg_pacman = { pkg_pacman.update({
'fish': {}, 'fish': {},
'netctl': {}, 'netctl': {},
'rfkill': {}, 'rfkill': {},