mirror of https://gerrit.hackerspace.pl/hscloud
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
parent
3125aa1186
commit
ca6dba9902
|
@ -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}"
|
||||
|
|
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue