From 61afbd51fa94841b7c28ae35db3de18f041bf6d7 Mon Sep 17 00:00:00 2001 From: aido93 Date: Tue, 30 Jun 2020 09:41:45 +0300 Subject: [PATCH] Update restore.sh --- postgres-restore-s3/restore.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/postgres-restore-s3/restore.sh b/postgres-restore-s3/restore.sh index fde2031..583d1af 100644 --- a/postgres-restore-s3/restore.sh +++ b/postgres-restore-s3/restore.sh @@ -85,7 +85,7 @@ psql $POSTGRES_HOST_OPTS -d "$POSTGRES_DATABASE" -c "CREATE EXTENSION IF NOT EXI psql $POSTGRES_HOST_OPTS -d "$POSTGRES_DATABASE" -c "ALTER EXTENSION citext SET SCHEMA public;" psql $POSTGRES_HOST_OPTS -d "$POSTGRES_DATABASE" -c "CREATE EXTENSION IF NOT EXISTS plpgsql;" pg_restore -V -pg_restore $POSTGRES_HOST_OPTS --no-owner --single-transaction -n public -v -d "$POSTGRES_DATABASE" dump.sql +pg_restore $POSTGRES_HOST_OPTS --no-owner --single-transaction -n public --no-privileges -v -d "$POSTGRES_DATABASE" dump.sql echo "Restore complete"