mirror of
https://github.com/fradelg/docker-mysql-cron-backup.git
synced 2024-11-01 08:31:45 +01:00
Merge pull request #91 from g-nardiello/patch-syntax-if
[Bugfix] run.sh - Missing default value for INIT_BACKUP
This commit is contained in:
commit
374b26531b
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