From 8711b925306be63d7b2b7669fe2ef3cf8ebdc476 Mon Sep 17 00:00:00 2001 From: nemsia Date: Thu, 13 Jul 2017 00:12:42 +0200 Subject: add __FINALPATH__ on Nginx conf (#46) * [enh] Final_path on nginx * [enh] final_path on nginx.conf * Merge remote-tracking branch 'refs/remotes/YunoHost-Apps/master' into nginx-conf # Conflicts: # scripts/restore * [fix] nginx path on backup * [fix] Error on final_path nginx * Version num in badge --- scripts/restore | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'scripts/restore') 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" -- cgit v1.2.3-70-g09d2