forked from GNUsocial/gnu-social
[TOOLS][SSL] Added bin/boostrap_certificates.sh, allowing for easy configuration of SSL certificates with Let's Encrypt
This commit is contained in:
19
docker/db/wait_for_db.sh
Executable file
19
docker/db/wait_for_db.sh
Executable file
@@ -0,0 +1,19 @@
|
||||
#!/bin/sh
|
||||
|
||||
case $SOCIAL_DBMS in
|
||||
"mariadb")
|
||||
CMD=mysqladmin ping --silent -hdb -uroot -p${MYSQL_ROOT_PASSWORD}
|
||||
;;
|
||||
"postgres")
|
||||
CMD=su postgres && pg_isready -hdb -q
|
||||
;;
|
||||
*)
|
||||
exit 1
|
||||
|
||||
esac
|
||||
|
||||
while ! $CMD;
|
||||
do
|
||||
echo "Waiting for DB..."
|
||||
sleep 3
|
||||
done
|
||||
Reference in New Issue
Block a user