aboutsummaryrefslogtreecommitdiff
path: root/scripts/restore
diff options
context:
space:
mode:
authornemsia <nemsia@nemsia.org>2017-07-13 00:27:17 +0200
committernemsia <nemsia@nemsia.org>2017-07-13 00:27:17 +0200
commit60ae6587feb89feb6221d43d89fac40eb44165a8 (patch)
treeb9cdf6ea7270150a29fda581c2f2b26c0225d6eb /scripts/restore
parent8f88641088a09aa466d6d2de760d9470b3d4d322 (diff)
parent8711b925306be63d7b2b7669fe2ef3cf8ebdc476 (diff)
downloadmastodon_ynh-60ae6587feb89feb6221d43d89fac40eb44165a8.tar.gz
mastodon_ynh-60ae6587feb89feb6221d43d89fac40eb44165a8.tar.bz2
mastodon_ynh-60ae6587feb89feb6221d43d89fac40eb44165a8.zip
Merge remote-tracking branch 'refs/remotes/YunoHost-Apps/master' into upgrade-from-pre-release
Diffstat (limited to 'scripts/restore')
-rw-r--r--scripts/restore4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/restore b/scripts/restore
index 5860e2c..30666df 100644
--- a/scripts/restore
+++ b/scripts/restore
@@ -162,7 +162,9 @@ yarn install --pure-lockfile
#RAILS_ENV=production bin/bundle exec rails assets:precompile
RCOMMANDS
-# Restore nginx configuration files
+# Modify Nginx configuration file and copy it to Nginx conf directory
+sudo sed -i "s@__PATH__@$app@g" ./nginx.conf
+sudo sed -i "s@__FINALPATH__@$final_path@g" ./nginx.conf
sudo cp -a ./nginx.conf "$nginx_conf"
# Restore crontab
sudo cp -a ./cron.conf "$crontab_conf"