mirror of
https://github.com/YunoHost-Apps/glitchsoc_ynh.git
synced 2024-09-03 19:15:59 +02:00
[FIX] Chmod before restore
This commit is contained in:
parent
2f578fd2c2
commit
4d2a047184
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue