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"