Commit 7e29b8a8 by Tsubasa Namiki

Fixed bug: failed importing initial dbdata

parent a7b3a843
......@@ -26,6 +26,14 @@ if [ "$1" = 'start' ]; then
export PGUSER=$POSTGRES_ENV_POSTGRES_USER
export PGPASSWORD=$POSTGRES_ENV_POSTGRES_PASSWORD
set +e
while :
do
psql -c "\q"
if [ "$?" = 0 ]; then
break
fi
sleep 1
done
psql -c "CREATE USER restya WITH ENCRYPTED PASSWORD '${PGPASSWORD}'"
psql -c "CREATE DATABASE restyaboard OWNER restya ENCODING 'UTF8'"
if [ "$?" = 0 ]; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment