Merge pull request #91 from g-nardiello/patch-syntax-if

[Bugfix] run.sh - Missing default value for INIT_BACKUP
This commit is contained in:
Fco. Javier Delgado del Hoyo 2023-01-09 20:24:17 +01:00 committed by GitHub
commit 374b26531b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

2
run.sh
View file

@ -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