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:
parent
e6ac3173c8
commit
c90a6ddc3e
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue