From 6e6f3cd38d0f589415ab71acd5c00d487f0b668e Mon Sep 17 00:00:00 2001 From: nemsia Date: Fri, 21 Apr 2017 14:29:37 +0200 Subject: [PATCH] Acl for Postgres user dump --- scripts/restore | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/restore b/scripts/restore index f754d81..80233af 100644 --- a/scripts/restore +++ b/scripts/restore @@ -81,6 +81,9 @@ sudo su -c "psql" postgres <<< \ sudo su -c "psql" postgres <<< \ "update pg_database set datistemplate='true' where datname='template1';" +# Acl for Postgres user dump +sudo setfacl -R -m u:postgres:r $YNH_APP_BACKUP_DIR || true + # Restore db ynh_psql_create_db_without_password "$app" sudo su - postgres <