From adbf1b741de6af64f6f3d516ad9a38291100d812 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Wed, 29 Mar 2017 16:52:08 -0400 Subject: [PATCH] Removing 'trimed' stuff --- change_url_app_ynh/scripts/change_url | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/change_url_app_ynh/scripts/change_url b/change_url_app_ynh/scripts/change_url index 01a2b74..f1617d8 100644 --- a/change_url_app_ynh/scripts/change_url +++ b/change_url_app_ynh/scripts/change_url @@ -6,18 +6,15 @@ number=$YNH_APP_INSTANCE_NUMBER # Retrieve arguments old_domain=$YNH_APP_OLD_DOMAIN old_path=$YNH_APP_OLD_PATH -old_path_trimed=$YNH_APP_OLD_PATH_TRIMED - new_domain=$YNH_APP_NEW_DOMAIN new_path=$YNH_APP_NEW_PATH -new_path_trimed=$YNH_APP_NEW_PATH_TRIMED nginx_conf_path=/etc/nginx/conf.d/$old_domain.d/$app.conf if [[ "$new_path" == "" ]]; then sudo sed -i "s@location .\+ {@location / {@g" $nginx_conf_path else - sudo sed -i "s@location .\+ {@location $new_path_trimed {@g" $nginx_conf_path + sudo sed -i "s@location .\+ {@location $new_path {@g" $nginx_conf_path fi if [ $old_domain != $new_domain ]; then