From e19ebe1144e32b48ab99dd3e3e284c21e61c9001 Mon Sep 17 00:00:00 2001 From: ANCELIN Julien Date: Thu, 14 Mar 2019 10:30:23 +0100 Subject: [PATCH] Update setup-database.sh --- setup-database.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup-database.sh b/setup-database.sh index a66f687..acb5488 100644 --- a/setup-database.sh +++ b/setup-database.sh @@ -100,8 +100,8 @@ if [[ ! ${RESULT} == '1' ]]; then CMD="ALTER USER ${POSTGRES_USER} WITH SUPERUSER CREATEDB;" su - postgres -c "psql -c \"$CMD\"" echo "pg_restore $POSTGRES_DBNAME ... " - su - postgres -c " psql $POSTGRES_DBNAME -f /home/$POSTGRES_DUMP " -# su - postgres -c " pg_restore -d $POSTGRES_DBNAME /home/$POSTGRES_DUMP " +# su - postgres -c " psql $POSTGRES_DBNAME -f /home/$POSTGRES_DUMP " + su - postgres -c " pg_restore -d $POSTGRES_DBNAME /home/$POSTGRES_DUMP " echo "OK !!!"