[DOCKER] Small fixes in docker startup scripts
This commit is contained in:
parent
adb7fbe1b0
commit
9679e766d2
|
@ -11,7 +11,7 @@ case $DBMS in
|
||||||
exit 1
|
exit 1
|
||||||
esac
|
esac
|
||||||
|
|
||||||
while ! $CMD;
|
while ! eval $CMD;
|
||||||
do
|
do
|
||||||
echo "Waiting for DB..."
|
echo "Waiting for DB..."
|
||||||
sleep 3
|
sleep 3
|
||||||
|
|
|
@ -6,7 +6,7 @@ case "${DBMS}" in
|
||||||
DB_EXISTS=$?
|
DB_EXISTS=$?
|
||||||
;;
|
;;
|
||||||
'mariadb')
|
'mariadb')
|
||||||
mysqlcheck -cqs -uroot -p"${MYSQL_ROOT_PASSWORD}" -hdb social 2> /dev/null
|
mysqlcheck -cqs -uroot -p"${MYSQL_ROOT_PASSWORD}" -hdb ${SOCIAL_DB} 2> /dev/null
|
||||||
DB_EXISTS=$?
|
DB_EXISTS=$?
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user