1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/duniter_ynh.git synced 2024-09-03 18:26:35 +02:00

[enh] upgrade nginx conf in upgrade script.

This commit is contained in:
Moul 2016-06-23 11:29:22 +00:00
parent e6ac3173c8
commit c90a6ddc3e

View file

@ -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