1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mastodon_ynh.git synced 2024-09-03 19:46:02 +02:00

[fix] Add restart postgre

This commit is contained in:
nemsia 2017-04-26 13:52:17 +02:00 committed by GitHub
parent a73600b547
commit ed08bd31ad

View file

@ -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