diff options
| author | nemsia <nemsia@nemsia.org> | 2017-04-30 10:45:52 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-04-30 10:45:52 +0200 |
| commit | d4642d29730ecfdf157499cc164033564fffa875 (patch) | |
| tree | 4c04f8df7c9bfdcc3b8937bc8eb9817a2bf9e54c /scripts/restore | |
| parent | 003c40c9e823b164126b6b18f7f90b9be9b0b5d8 (diff) | |
| parent | 96c72ba22523bd2485a08a111e9aadcb87344d53 (diff) | |
| download | mastodon_ynh-d4642d29730ecfdf157499cc164033564fffa875.tar.gz mastodon_ynh-d4642d29730ecfdf157499cc164033564fffa875.tar.bz2 mastodon_ynh-d4642d29730ecfdf157499cc164033564fffa875.zip | |
Merge branch 'master' into patch-2
Diffstat (limited to 'scripts/restore')
| -rw-r--r-- | scripts/restore | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/restore b/scripts/restore index 70b876b..965f6f0 100644 --- a/scripts/restore +++ b/scripts/restore @@ -70,6 +70,8 @@ sudo cp -a ./sources/. "$final_path" # Set permissions sudo chown -R $app: "$final_path" +sudo chmod -R a+rx /home/yunohost.backup/tmp + sudo ls -alh "$final_path" @@ -102,7 +104,7 @@ RAILS_ENV=production bin/bundle exec rails assets:precompile RCOMMANDS # restore database -sudo pg_dump mastodon_production < $YNH_APP_BACKUP_DIR/mastodon_db.sql +sudo psql mastodon_production < $YNH_APP_BACKUP_DIR/mastodon_db.sql # Create symlink for ruby sudo ln -s /opt/mastodon/.rbenv/versions/2.4.1/bin/ruby /usr/bin/ruby || true @@ -131,4 +133,4 @@ sudo yunohost service add mastodon-sidekiq sudo yunohost service add mastodon-streaming # Reload services -sudo systemctl reload nginx
\ No newline at end of file +sudo systemctl reload nginx |
