Browse Source

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

pull/6/head
Valentin Lab 10 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 EOF
Wrap -d "Updating cron scripts" <<EOF || exit 1 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 EOF
Wrap -d "Updating sysctl scripts" <<EOF || exit 1 Wrap -d "Updating sysctl scripts" <<EOF || exit 1

Loading…
Cancel
Save