Skip to content
Snippets Groups Projects
Verified Commit 4c27d73d authored by Quentin Duchemin's avatar Quentin Duchemin
Browse files

[Etherpad] Fix bad syntax in entrypoint

parent f3d8f87c
No related merge requests found
Pipeline #61742 passed
...@@ -22,7 +22,7 @@ if [ -z "${DB_HOST}" ]; then ...@@ -22,7 +22,7 @@ if [ -z "${DB_HOST}" ]; then
exit 1 exit 1
fi fi
while ! { mysqladmin ping -u${DB_USER} -p${DB_PASSWORD} -h"${DB_HOST}" &>/dev/null || PGPASSWORD=${DB_PASSWORD} psql -h${DB_HOST} -U${DB_USER} -c "SELECT 1" }; do while ! { mysqladmin ping -u"${DB_USER}" -p"${DB_PASSWORD}" -h"${DB_HOST}" &>/dev/null || PGPASSWORD="${DB_PASSWORD}" psql -h"${DB_HOST}" -U"${DB_USER}" -d"${DB_NAME}" -c "SELECT 1" &>/dev/null; }; do
echo "Database server not ready yet, re-trying in 5 seconds..." echo "Database server not ready yet, re-trying in 5 seconds..."
sleep 5 sleep 5
done done
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment