aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authornemsia <nemsia@nemsia.org>2017-04-29 21:43:36 +0200
committerGitHub <noreply@github.com>2017-04-29 21:43:36 +0200
commit09f59cec8bf996634696ea03231458ba3b83eade (patch)
tree49313e0a022c5c5ad9e6be27620355470c0f6485 /scripts
parent2cef464c6ba44226baf0a1f0f6a512145b3929ea (diff)
downloadmastodon_ynh-09f59cec8bf996634696ea03231458ba3b83eade.tar.gz
mastodon_ynh-09f59cec8bf996634696ea03231458ba3b83eade.tar.bz2
mastodon_ynh-09f59cec8bf996634696ea03231458ba3b83eade.zip
[fix] Restore dump with psql
Diffstat (limited to 'scripts')
-rw-r--r--scripts/restore4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/restore b/scripts/restore
index 70b876b..1340796 100644
--- a/scripts/restore
+++ b/scripts/restore
@@ -102,7 +102,7 @@ RAILS_ENV=production bin/bundle exec rails assets:precompile
RCOMMANDS
# restore database
-sudo pg_dump mastodon_production < $YNH_APP_BACKUP_DIR/mastodon_db.sql
+sudo psql mastodon_production < $YNH_APP_BACKUP_DIR/mastodon_db.sql
# Create symlink for ruby
sudo ln -s /opt/mastodon/.rbenv/versions/2.4.1/bin/ruby /usr/bin/ruby || true
@@ -131,4 +131,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