Browse Source

new: [myc-update] allow full directory ``cron.*`` coverage of cron script deployment

journalctl_limit
Valentin Lab 9 months ago
parent
commit
bf0a86fb02
  1. 6
      bin/myc-update

6
bin/myc-update

@ -61,8 +61,10 @@ docker pull docker.0k.io/letsencrypt
EOF
Wrap -d "Updating cron scripts" <<EOF || exit 1
ln -sfn /opt/apps/myc-manage/etc/cron.d/* /etc/cron.d/
find -L /etc/cron.d -maxdepth 1 -type l -ilname /opt/apps/myc-manage/etc/cron.d/\* -delete
for d in /etc/cron.{d,daily,hourly,monthly,weekly}; do
ln -sfn "/opt/apps/myc-manage\$d/"* "\$d/" &&
find -L "\$d" -maxdepth 1 -type l -ilname "/opt/apps/myc-manage\$d/"\* -delete
done
EOF
Wrap -d "Updating sysctl scripts" <<EOF || exit 1

Loading…
Cancel
Save