diff options
Diffstat (limited to 'scripts/restore')
| -rw-r--r-- | scripts/restore | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/restore b/scripts/restore index 63ce6ee..a47ca7c 100644 --- a/scripts/restore +++ b/scripts/restore @@ -102,9 +102,11 @@ RAILS_ENV=production bin/bundle exec rails db:migrate RAILS_ENV=production bin/bundle exec rails assets:precompile RCOMMANDS -# restore database +# copy database sudo cp $YNH_APP_BACKUP_DIR/mastodon_db.sql $final_path +sudo chmod a+r $final_path/mastodon_db.sql +# Restore database sudo su - $app <<RECOMMANDS dropdb mastodon_production createdb mastodon_production |
