Browse Source

new: [myc-update] install and manage ``cron`` scripts.

Added the ``check-fix`` script to check for 2 docker bugs.
rc1
Valentin Lab 2 years ago
parent
commit
0b761885f2
  1. 6
      bin/myc-update
  2. 7
      etc/cron.d/check-fix

6
bin/myc-update

@ -53,4 +53,10 @@ Wrap -d "Updating some docker images" <<EOF || exit 1
docker pull docker.0k.io/letsencrypt docker pull docker.0k.io/letsencrypt
EOF 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
EOF
printf "Update finished ${GREEN}successfully${NORMAL} ${GRAY}(in %.2fs)${NORMAL}.\n" "$((SECONDS - start))" printf "Update finished ${GREEN}successfully${NORMAL} ${GRAY}(in %.2fs)${NORMAL}.\n" "$((SECONDS - start))"

7
etc/cron.d/check-fix

@ -0,0 +1,7 @@
SHELL=/bin/bash
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
*/15 * * * * root vps check-fix -s -c container-aliveness 2>&1 | logger -t check-fix
*/5 * * * * root vps check-fix -s -c no-matching-entries rocketchat 2>&1 | logger -t check-fix
Loading…
Cancel
Save