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

[FIX] Chmod before restore

This commit is contained in:
nemsia 2017-05-01 14:14:04 +02:00 committed by GitHub
parent 2f578fd2c2
commit 4d2a047184

View file

@ -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