hswaw/customs: send cron mails to both

Change-Id: I9776ee7eadc77f8bddf09eee7dee6331f9088c29
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1457
Reviewed-by: informatic <informatic@hackerspace.pl>
changes/57/1457/2
vuko 2023-01-05 19:54:20 +01:00
parent 3125aa1186
commit ca6dba9902
2 changed files with 2 additions and 2 deletions

View File

@ -404,7 +404,7 @@ in {
date --iso-8601=seconds >> /var/log/arptables/arptables.log
'';
in {
mailto = "vuko@hackerspace.pl";
mailto = "both@hackerspace.pl";
enable = true;
systemCronJobs = [
"*/5 * * * * root ${log-neigh}"

View File

@ -75,7 +75,7 @@ if __name__ == "__main__":
logging.info('Creating new "authorized_keys" file')
os.rename(new_file, old_file)
elif filecmp.cmp(new_file, old_file, shallow=False):
logging.info('Nothing changed - "authorized_keys" file is up to date')
logging.debug('Nothing changed - "authorized_keys" file is up to date')
new_file.unlink()
else:
logging.info('Keys changed - overwriting "authorized_keys" file')