diff options
| author | nemsia <nemsia@nemsia.org> | 2017-04-26 13:52:17 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-04-26 13:52:17 +0200 |
| commit | ed08bd31ad591bbae6fbd66f910ccf0d129738ef (patch) | |
| tree | 6ca85611317e0af8449190c1f8fb0275fbedcb3a | |
| parent | a73600b547a4938d41b9107eb2f14960e420ab35 (diff) | |
| download | mastodon_ynh-ed08bd31ad591bbae6fbd66f910ccf0d129738ef.tar.gz mastodon_ynh-ed08bd31ad591bbae6fbd66f910ccf0d129738ef.tar.bz2 mastodon_ynh-ed08bd31ad591bbae6fbd66f910ccf0d129738ef.zip | |
[fix] Add restart postgre
| -rw-r--r-- | scripts/restore | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/restore b/scripts/restore index 8d0df6a..65a4af8 100644 --- a/scripts/restore +++ b/scripts/restore @@ -88,6 +88,7 @@ sudo cp $YNH_APP_BACKUP_DIR/mastodon_db.sql $final_path # Restore db ynh_psql_create_db_without_password "$app" +sudo systemctl restart postgresql sudo su - postgres <<COMMANDS pg_dump --role=mastodon -U postgres --no-password mastodon < $final_path/mastodon_db.sql COMMANDS |
