diff options
| author | nemsia <nemsia@nemsia.org> | 2017-04-21 14:29:37 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-04-21 14:29:37 +0200 |
| commit | 6e6f3cd38d0f589415ab71acd5c00d487f0b668e (patch) | |
| tree | 420b5792badece34b0dde86a68eb76ce404ac93c /scripts/restore | |
| parent | 51a9103c40b9e51c875fccb83f9926712d4c433e (diff) | |
| download | mastodon_ynh-6e6f3cd38d0f589415ab71acd5c00d487f0b668e.tar.gz mastodon_ynh-6e6f3cd38d0f589415ab71acd5c00d487f0b668e.tar.bz2 mastodon_ynh-6e6f3cd38d0f589415ab71acd5c00d487f0b668e.zip | |
Acl for Postgres user dump
Diffstat (limited to 'scripts/restore')
| -rw-r--r-- | scripts/restore | 5 |
1 files changed, 4 insertions, 1 deletions
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 <<COMMANDS @@ -121,4 +124,4 @@ sudo yunohost service add mastodon-sidekiq sudo yunohost service add mastodon-streaming # Reload services -sudo systemctl reload nginx
\ No newline at end of file +sudo systemctl reload nginx |
