Browse Source

fix: [myc-check-and-launch-backup] prevent launch from external host through ssh

Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
rc1
Valentin Lab 3 years ago
parent
commit
45cc7556bf
  1. 2
      bin/myc-check-and-launch-backup

2
bin/myc-check-and-launch-backup

@ -4,7 +4,7 @@
## Quick and dirty check launching backup
##
if ! cron_line=$(docker exec -ti myc_cron_1 cat /etc/cron.d/rsync-backup | grep "\* \* \*"); then
if ! cron_line=$(docker exec myc_cron_1 cat /etc/cron.d/rsync-backup | grep "\* \* \*"); then
echo "can't find cron_line in cron container." >&2
exit 1
fi

Loading…
Cancel
Save