1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/syncthing_ynh.git synced 2024-09-03 20:26:23 +02:00

correct upgrade script

This commit is contained in:
Lahire Biette 2016-11-03 12:33:56 +01:00 committed by GitHub
parent 6ffaeaa97a
commit 1b586dacc1

View file

@ -17,18 +17,11 @@ path=${path%/}
sudo apt-get update -qq
sudo apt-get upgrade syncthing -y
# Update and reload Nginx
sed -i "s@PATHTOCHANGE@$path@g" ../conf/nginx.conf
sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/syncthing.conf
sudo service nginx reload
# Update Nginx configuration
sed -i "s@PATHTOCHANGE@$path@g" ../conf/nginx.conf
sed -i "s@PORTTOCHANGE@$GUIPORT@g" ../conf/nginx.conf
sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/syncthing.conf
# And reload
sudo service nginx reload
sudo yunohost app ssowatconf