aboutsummaryrefslogtreecommitdiff
path: root/scripts/restore
diff options
context:
space:
mode:
authornemsia <nemsia@nemsia.org>2017-04-26 13:52:17 +0200
committerGitHub <noreply@github.com>2017-04-26 13:52:17 +0200
commited08bd31ad591bbae6fbd66f910ccf0d129738ef (patch)
tree6ca85611317e0af8449190c1f8fb0275fbedcb3a /scripts/restore
parenta73600b547a4938d41b9107eb2f14960e420ab35 (diff)
downloadmastodon_ynh-ed08bd31ad591bbae6fbd66f910ccf0d129738ef.tar.gz
mastodon_ynh-ed08bd31ad591bbae6fbd66f910ccf0d129738ef.tar.bz2
mastodon_ynh-ed08bd31ad591bbae6fbd66f910ccf0d129738ef.zip
[fix] Add restart postgre
Diffstat (limited to 'scripts/restore')
-rw-r--r--scripts/restore1
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