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

Merge pull request #17 from nemsia/patch-3

[fix] Restore dump with psql
This commit is contained in:
__cyp 2017-04-30 01:17:37 +02:00 committed by GitHub
commit 7a56608ac7

View file

@ -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
sudo systemctl reload nginx