mirror of
https://github.com/edv-pi/pbs-client-docker.git
synced 2025-04-19 04:12:55 +02:00
Fix faulty CRON_BACKUP_ONLY var warning logic.
This commit is contained in:
parent
756584639f
commit
9e239cc466
@ -76,8 +76,8 @@ if [ "$CRON_BACKUP_ONLY" = "0" ] || [ -e "${lastrunfile}" ]; then
|
|||||||
fi
|
fi
|
||||||
elif [ "$CRON_BACKUP_ONLY" = "1" ]; then
|
elif [ "$CRON_BACKUP_ONLY" = "1" ]; then
|
||||||
echo "CRON_BACKUP_ONLY=1, skipping container start up initial backup."
|
echo "CRON_BACKUP_ONLY=1, skipping container start up initial backup."
|
||||||
elif [ "$CRON_BACKUP_ONLY" = "0" ] || [ "$CRON_BACKUP_ONLY" = "1" ] ]; then
|
elif [ "$CRON_BACKUP_ONLY" != "0" ] && [ "$CRON_BACKUP_ONLY" != "1" ]; then
|
||||||
echo "CRON_BACKUP_ONLY set to invalid value, skipping container start up initial backup."
|
echo "CRON_BACKUP_ONLY set to invalid value, skipping container start up initial backup."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Set this so backups always happen after the first run via CRON given logic above.
|
# Set this so backups always happen after the first run via CRON given logic above.
|
||||||
|
Loading…
Reference in New Issue
Block a user