From 45cc7556bff30f3cfbd4ae4f2e6a63985d6f9aed Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Fri, 19 Mar 2021 00:03:25 +0100 Subject: [PATCH] fix: [myc-check-and-launch-backup] prevent launch from external host through ssh Signed-off-by: Valentin Lab --- bin/myc-check-and-launch-backup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/myc-check-and-launch-backup b/bin/myc-check-and-launch-backup index 8b9bb3d..3edac4c 100755 --- a/bin/myc-check-and-launch-backup +++ b/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