Skip to content

Commit

Permalink
Fix faulty CRON_BACKUP_ONLY var warning logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
Aterfax committed Mar 26, 2024
1 parent 7565846 commit 9e239cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker/src/s6-services/backup/run_include
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ if [ "$CRON_BACKUP_ONLY" = "0" ] || [ -e "${lastrunfile}" ]; then
fi
elif [ "$CRON_BACKUP_ONLY" = "1" ]; then
echo "CRON_BACKUP_ONLY=1, skipping container start up initial backup."
elif [ "$CRON_BACKUP_ONLY" = "0" ] || [ "$CRON_BACKUP_ONLY" = "1" ] ]; then
echo "CRON_BACKUP_ONLY set to invalid value, skipping container start up initial backup."
elif [ "$CRON_BACKUP_ONLY" != "0" ] && [ "$CRON_BACKUP_ONLY" != "1" ]; then
echo "CRON_BACKUP_ONLY set to invalid value, skipping container start up initial backup."
fi

# Set this so backups always happen after the first run via CRON given logic above.
Expand Down

0 comments on commit 9e239cc

Please sign in to comment.