Update docker.yml
This commit is contained in:
parent
65175112e0
commit
147a813064
@ -166,8 +166,8 @@
|
|||||||
MARIADB_PWD=$(docker exec $i env | egrep "MARIADB_PASSWORD|MYSQL_PASSWORD" | tail -n1 |cut -d"=" -f2)
|
MARIADB_PWD=$(docker exec $i env | egrep "MARIADB_PASSWORD|MYSQL_PASSWORD" | tail -n1 |cut -d"=" -f2)
|
||||||
MARIADB_USR=$(docker exec $i env | egrep "MARIADB_USER|MYSQL_USER" | tail -n1 |cut -d"=" -f2)
|
MARIADB_USR=$(docker exec $i env | egrep "MARIADB_USER|MYSQL_USER" | tail -n1 |cut -d"=" -f2)
|
||||||
# get dump path
|
# get dump path
|
||||||
docker exec -ti $i /usr/bin/test -x /usr/bin/mariadb-dump && DBDUMPCMD=/usr/bin/mariadb-dump
|
docker exec $i /usr/bin/test -x /usr/bin/mariadb-dump && DBDUMPCMD=/usr/bin/mariadb-dump
|
||||||
docker exec -ti $i /usr/bin/test -x /usr/bin/mysqldump && DBDUMPCMD=/usr/bin/mysqldump
|
docker exec $i /usr/bin/test -x /usr/bin/mysqldump && DBDUMPCMD=/usr/bin/mysqldump
|
||||||
if [ -z "$DBDUMPCMD" ]
|
if [ -z "$DBDUMPCMD" ]
|
||||||
then
|
then
|
||||||
g_echo_error "No dbdumpcmd found in container $i! No backup created!"
|
g_echo_error "No dbdumpcmd found in container $i! No backup created!"
|
||||||
|
Loading…
Reference in New Issue
Block a user