1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/spip_ynh.git synced 2024-09-03 20:25:59 +02:00

Bug lors de la copie de la conf Nginx sur l'upgrade

This commit is contained in:
magikcypress 2017-03-08 23:41:35 +01:00
parent 778035932c
commit f28adb37b8

View file

@ -36,18 +36,11 @@ CHECK_MD5_CONFIG "connect.php" "$final_path/config/connect.php" # Created a back
sed -i "s@__PATHTOCHANGE__@$app@g" ../conf/nginx.conf*
sed -i "s@__FINALPATH__@$final_path/@g" ../conf/nginx.conf*
# If app is public, add url to SSOWat conf as skipped_uris
if [ $is_public = "Yes" ];
then
sudo cp ../conf/nginx.conf-public /etc/nginx/conf.d/$domain.d/$app.conf
else
sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/$app.conf
fi
# If app is public, add url to SSOWat conf as skipped_uris
if [[ $is_public -eq 1 ]]; then
# See install script
ynh_app_setting_set "$app" unprotected_uris "/"
sudo cp ../conf/nginx.conf-public /etc/nginx/conf.d/$domain.d/$app.conf
sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/$app.conf
else
sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/$app.conf
fi