aboutsummaryrefslogtreecommitdiff
path: root/scripts/restore
diff options
context:
space:
mode:
authornemsia <nemsia@nemsia.org>2017-04-29 23:53:33 +0200
committerGitHub <noreply@github.com>2017-04-29 23:53:33 +0200
commit67a35b2ff286468311171335ebd67d56a87f4ee4 (patch)
treeab6313054bc1cf396d30de509b414ef36c27028b /scripts/restore
parentd898b1107467b9e283f7660598c1c63e2b26d9d3 (diff)
downloadmastodon_ynh-67a35b2ff286468311171335ebd67d56a87f4ee4.tar.gz
mastodon_ynh-67a35b2ff286468311171335ebd67d56a87f4ee4.tar.bz2
mastodon_ynh-67a35b2ff286468311171335ebd67d56a87f4ee4.zip
[fix] Restore with psql
Diffstat (limited to 'scripts/restore')
-rw-r--r--scripts/restore2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/restore b/scripts/restore
index 3f63380..965f6f0 100644
--- a/scripts/restore
+++ b/scripts/restore
@@ -104,7 +104,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