mirror of
https://github.com/fradelg/docker-mysql-cron-backup.git
synced 2025-01-18 16:22:33 +01:00
Fixed if on line 4 to accept default 0 value
This commit is contained in:
parent
3011a8770a
commit
218bc5778c
1 changed files with 1 additions and 1 deletions
2
run.sh
2
run.sh
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
tail -F /mysql_backup.log &
|
||||
|
||||
if [ "${INIT_BACKUP}" -gt "0" ]; then
|
||||
if [ "${INIT_BACKUP:-0}" -gt "0" ]; then
|
||||
echo "=> Create a backup on the startup"
|
||||
/backup.sh
|
||||
elif [ -n "${INIT_RESTORE_LATEST}" ]; then
|
||||
|
|
Loading…
Reference in a new issue