File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -73,20 +73,21 @@ ln -s /listbackups.sh /usr/bin/listbackups
7373
7474touch /mongo_backup.log
7575
76- if [[ " $INIT_BACKUP " == " true" ]]; then
76+ if [[ " ${ INIT_BACKUP} " == " true" ]]; then
7777 echo " => Create a backup on the startup"
7878 /backup.sh
7979fi
8080
81- if [[ " $INIT_RESTORE " == " true" ]]; then
81+ if [[ " ${ INIT_RESTORE} " == " true" ]]; then
8282 echo " => Restore store from lastest backup on startup"
8383 /restore.sh
8484fi
8585
86- if [[ " $DISABLE_CRON " == " true" ]]; then
86+ if [[ " ${ DISABLE_CRON} " == " true" ]]; then
8787 echo " ${CRON_TIME} . /root/project_env.sh; /backup.sh >> /mongo_backup.log 2>&1" > /crontab.conf
8888 crontab /crontab.conf
8989 echo " => Running cron job"
90- cron && tail -f /mongo_backup.log
90+ cron
9191fi
9292
93+ tail -f /mongo_backup.log
You can’t perform that action at this time.
0 commit comments