mirror of
https://github.com/YunoHost-Apps/glitchsoc_ynh.git
synced 2024-09-03 19:15:59 +02:00
[fix] Restore dump with psql
This commit is contained in:
parent
2cef464c6b
commit
09f59cec8b
1 changed files with 2 additions and 2 deletions
|
@ -102,7 +102,7 @@ RAILS_ENV=production bin/bundle exec rails assets:precompile
|
||||||
RCOMMANDS
|
RCOMMANDS
|
||||||
|
|
||||||
# restore database
|
# 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
|
# Create symlink for ruby
|
||||||
sudo ln -s /opt/mastodon/.rbenv/versions/2.4.1/bin/ruby /usr/bin/ruby || true
|
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
|
sudo yunohost service add mastodon-streaming
|
||||||
|
|
||||||
# Reload services
|
# Reload services
|
||||||
sudo systemctl reload nginx
|
sudo systemctl reload nginx
|
||||||
|
|
Loading…
Add table
Reference in a new issue