From: Emilie Date: Thu, 17 Aug 2017 15:30:18 +0000 (+0200) Subject: [db] restore issue typo X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=efb5a25638849dc06e72a8e774ecbfc5c07e273c;p=docker-django-scripts.git [db] restore issue typo --- diff --git a/db/restore.sh b/db/restore.sh index 5f28ff2..b3569de 100755 --- a/db/restore.sh +++ b/db/restore.sh @@ -10,8 +10,8 @@ if [ ! -z "$MYSQL" ]; mysql -h db $MYSQL_DATABASE -u$MYSQL_USER < /srv/backup/mariadb.dump elif [ ! -z "$POSTGRES" ]; then - export PGUSER=$POSTGRES_PASSWORD - export PGPASSWORD=$DB_ROOT_PASSWORD + export PGUSER="postgres" + export PGPASSWORD=$POSTGRES_PASSWORD export PGDATABASE="postgres" pg_restore -c -Fc -hdb /srv/backup/postgres.dump fi