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

[enh] use variable for Nginx conf file path.

This commit is contained in:
Moul 2016-06-23 10:11:46 +00:00
parent 200e5b12d8
commit 6bfab67ead

View file

@ -76,9 +76,10 @@ sudo yunohost service add $app --log /home/admin/.config/$app/"$app"_default/"$a
# SSOwat Configuration
sudo yunohost app setting $app skipped_uris -v "/"
# Add proxy_pass
sudo sed -i "s@YNH_EXAMPLE_PATH@$path@g" ../conf/nginx.conf
sudo sed -i "s@YNH_EXAMPLE_PORT@$port@" ../conf/nginx.conf
sudo sed -i "s@YNH_EXAMPLE_DOMAIN@$domain@" ../conf/nginx.conf
sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/$app.conf
# Configure Nginx
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