From c90a6ddc3ede86a47e8b97e21481b3c14a2a8399 Mon Sep 17 00:00:00 2001 From: Moul Date: Thu, 23 Jun 2016 11:29:22 +0000 Subject: [PATCH] [enh] upgrade nginx conf in upgrade script. --- scripts/upgrade | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index a721efc..7d9abe8 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -28,3 +28,11 @@ sudo dpkg -i /tmp/duniter-$version-linux-$arch.deb # Start duniter daemon sudo $app start + +# Upgrade Nginx configuration +nginx_conf="../conf/nginx.conf" +sudo sed -i "s@YNH_EXAMPLE_PATH@$path@g" $nginx_conf +sudo sed -i "s@YNH_EXAMPLE_PORT@$port@" $nginx_conf +sudo sed -i "s@YNH_EXAMPLE_DOMAIN@$domain@" $nginx_conf +sudo cp $nginx_conf /etc/nginx/conf.d/$domain.d/$app.conf +sudo service nginx reload