diff options
| author | nemsia <nemsia@nemsia.org> | 2017-05-01 14:14:04 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-05-01 14:14:04 +0200 |
| commit | 4d2a04718467990fc1444ed1972e255323a8597e (patch) | |
| tree | 9a0f9d4e043f646950b19235f5780f8b364a6121 /scripts/restore | |
| parent | 2f578fd2c20ce5e92c45946c4b944f3d125f1748 (diff) | |
| download | mastodon_ynh-4d2a04718467990fc1444ed1972e255323a8597e.tar.gz mastodon_ynh-4d2a04718467990fc1444ed1972e255323a8597e.tar.bz2 mastodon_ynh-4d2a04718467990fc1444ed1972e255323a8597e.zip | |
[FIX] Chmod before restore
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 |
