From: Nicolas Boisselier Date: Fri, 13 Jun 2025 09:30:01 +0000 (+0200) Subject: bin/crontab_install X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=b21058baa74be75678b597ce51b547d9c5baf790;p=nb.git bin/crontab_install --- diff --git a/bin/crontab_install b/bin/crontab_install index bad4120d..f0084c19 100755 --- a/bin/crontab_install +++ b/bin/crontab_install @@ -60,12 +60,14 @@ Nicolas Boisselier cat_crontab() { local f - for f in .crontab $( + for f in .*crontab $( (hostname -f; hostname -s) \ - | awk '!x[$1]++ && "$1"!="localhost" && !/^ *$/{print ".crontab-host."$1}' \ + | awk '!x[$1]++ && "$1"!="localhost" && !/^ *$/{print ".crontab-host."$1;print ".crontab*."$1}' \ ); do - [ "$DEBUG" = "0" ] || echo "DEBUG: $f $([ -r "$f" ] || echo "NOT ")EXISTS" 1>&2 - [ -r "$f" ] || continue + [ "$DEBUG" = "0" ] || echo "DEBUG: EXISTS: $([ -r "$f" ] && echo YES || echo "NO "): $f" 1>&2 + #[ "$DEBUG" = "0" ] || echo "DEBUG: $f $([ -r "$f" ] || echo "NOT ")EXISTS" 1>&2 + [ -r "$f" -a -s "$f" ] || continue + #[ -r "$f" ] || continue echo "#---------------------------------------" echo "# >>> $f" echo "#---------------------------------------"