From ef01ff7ab6ad9f0886f201179c374aeb64961998 Mon Sep 17 00:00:00 2001 From: Vitalii Zurian Date: Sun, 3 Nov 2019 18:20:55 +0100 Subject: [PATCH] Consistent value according to the documentation Otherwise the correct flag is just an empty string --- run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run.sh b/run.sh index 7198b2b..8937450 100755 --- a/run.sh +++ b/run.sh @@ -83,7 +83,7 @@ if [ -n "${INIT_RESTORE}" ]; then /restore.sh fi -if [ -z "${DISABLE_CRON}" ]; then +if [ -n "${DISABLE_CRON}" ]; then echo "${CRON_TIME} . /root/project_env.sh; /backup.sh >> /mongo_backup.log 2>&1" > /crontab.conf crontab /crontab.conf echo "=> Running cron job"