[DOCKER] Small fixes in docker startup scripts

This commit is contained in:
Hugo Sales 2022-10-26 13:57:44 +01:00
parent adb7fbe1b0
commit 9679e766d2
No known key found for this signature in database
GPG Key ID: 7D0C7EAFC9D835A0
2 changed files with 2 additions and 2 deletions

View File

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

View File

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