From b9ff2bedb6bd4144289cc2109ef08333696082e3 Mon Sep 17 00:00:00 2001 From: Krakinou Date: Sat, 24 Nov 2018 01:16:09 +0100 Subject: [PATCH] Update install --- scripts/install | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/scripts/install b/scripts/install index 6ab6481..e0c62f6 100644 --- a/scripts/install +++ b/scripts/install @@ -112,18 +112,18 @@ sudo echo "devnull:/dev/null" | sudo tee -a /etc/aliases sudo newaliases # Modify Nginx configuration file and copy it to Nginx conf directory -#sudo sed -i "s@YNH_EXAMPLE_PATH@$path_url@g" ../conf/nginx.conf -#sudo sed -i "s@YNH_EXAMPLE_ALIAS@$final_path/www/@g" ../conf/nginx.conf -#sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/$app.conf +sudo sed -i "s@YNH_EXAMPLE_PATH@$path_url@g" ../conf/nginx.conf +sudo sed -i "s@YNH_EXAMPLE_ALIAS@$final_path/www/@g" ../conf/nginx.conf +sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/$app.conf # Handle root path, avoid double slash. # Temporary fix, in waiting for an upgrade of the helper. (#361) -path_url_slash_less=${path_url%/} -ynh_replace_string "__PATH__/" "$path_url_slash_less/" "../conf/nginx.conf" -ynh_replace_string "__FINALPATH__/" "$final_path/www" "../conf/nginx.conf" +#path_url_slash_less=${path_url%/} +#ynh_replace_string "__PATH__/" "$path_url_slash_less/" "../conf/nginx.conf" +#ynh_replace_string "__FINALPATH__/" "$final_path/www" "../conf/nginx.conf" # Create a dedicated nginx config -ynh_add_nginx_config +#ynh_add_nginx_config # If app is public, add url to SSOWat conf as skipped_uris if [ "$is_public" = "Yes" ];