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

reorder NGINX CONFIGURATION

This commit is contained in:
yalh76 2019-04-13 16:49:47 +02:00
parent 42deb5098c
commit 26cfb1d65b

View file

@ -99,6 +99,16 @@ echo "deb http://apt.syncthing.net/ syncthing $channel" | sudo tee /etc/apt/sour
sudo apt-get update -qq
sudo apt-get install syncthing -y --force-yes
#=================================================
# NGINX CONFIGURATION
#=================================================
ynh_print_info "Configuring nginx web server..."
# Configure Nginx
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
#=================================================
# CREATE DEDICATED USER
#=================================================
@ -141,16 +151,6 @@ if [ -d "/etc/logrotate.d" ]; then
sudo chmod 0644 /etc/logrotate.d/syncthing
fi
#=================================================
# NGINX CONFIGURATION
#=================================================
ynh_print_info "Configuring nginx web server..."
# Configure Nginx
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
#=================================================
# GENERIC FINALIZATION
#=================================================