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:
parent
a73600b547
commit
ed08bd31ad
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue