mirror of
https://github.com/tiredofit/docker-db-backup.git
synced 2025-12-21 13:23:12 +01:00
Update run
Fix "unary operator expected" that appears in the first couple lines of the log
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
date >/dev/null
|
date >/dev/null
|
||||||
|
|
||||||
if [ $1 != "NOW" ]; then
|
if [ "$1" != "NOW" ]; then
|
||||||
sleep 10
|
sleep 10
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -37,7 +37,7 @@ MD5=${MD5:-TRUE}
|
|||||||
SPLIT_DB=${SPLIT_DB:-FALSE}
|
SPLIT_DB=${SPLIT_DB:-FALSE}
|
||||||
TMPDIR=/tmp/backups
|
TMPDIR=/tmp/backups
|
||||||
|
|
||||||
if [ $1 = "NOW" ]; then
|
if [ "$1" = "NOW" ]; then
|
||||||
DB_DUMP_BEGIN=+0
|
DB_DUMP_BEGIN=+0
|
||||||
MANUAL=TRUE
|
MANUAL=TRUE
|
||||||
fi
|
fi
|
||||||
@@ -298,4 +298,4 @@ echo '** [db-backup] Initialized at at '$(date)
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user