Skip to content

Commit

Permalink
[update-run] update run.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
aliartiza75 committed Feb 6, 2020
1 parent f5c505c commit 678375f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,17 +73,17 @@ ln -s /listbackups.sh /usr/bin/listbackups

touch /mongo_backup.log

if [[ "$INIT_BACKUP" == "true" ]]; then
if [[ "${INIT_BACKUP}" == "true" ]]; then
echo "=> Create a backup on the startup"
/backup.sh
fi

if [[ "$INIT_RESTORE" == "true" ]]; then
if [[ "${INIT_RESTORE}" == "true" ]]; then
echo "=> Restore store from lastest backup on startup"
/restore.sh
fi

if [[ "$DISABLE_CRON" == "true" ]]; then
if [[ "${DISABLE_CRON}" == "true" ]]; then
echo "${CRON_TIME} . /root/project_env.sh; /backup.sh >> /mongo_backup.log 2>&1" > /crontab.conf
crontab /crontab.conf
echo "=> Running cron job"
Expand Down

0 comments on commit 678375f

Please sign in to comment.