From 4d2a04718467990fc1444ed1972e255323a8597e Mon Sep 17 00:00:00 2001 From: nemsia Date: Mon, 1 May 2017 14:14:04 +0200 Subject: [PATCH] [FIX] Chmod before restore --- scripts/restore | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 <