From 4f78e7a455f38f36e88001f469d11b0d463207cf Mon Sep 17 00:00:00 2001 From: ewilly Date: Mon, 23 May 2016 19:10:38 +0200 Subject: [PATCH] Remove unnecessary --- scripts/install | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/scripts/install b/scripts/install index 8368e78..863c1e9 100644 --- a/scripts/install +++ b/scripts/install @@ -81,13 +81,8 @@ postsize=${filesize%?}.1${filesize: -1} sudo sed -i "s@YNH_FILE_SIZE@$filesize@g" ../conf/nginx.conf sudo sed -i "s@YNH_POST_SIZE@$postsize@g" ../conf/nginx.conf ## path -folder_path=${path%/} sudo sed -i "s@YNH_EXAMPLE_PATH@$path@g" ../conf/nginx.conf -# if path is only / (without subfolder), add trailing slash to alias -alias_path=$final_path -[ "$path" == '/' ] && alias_path=$alias_path'/' -sudo sed -i "s@YNH_EXAMPLE_ALIAS@$alias_path@g" ../conf/nginx.conf -sudo sed -i "s@YNH_EXAMPLE_FOLDER@$folder_path@g" ../conf/nginx.conf +sudo sed -i "s@YNH_EXAMPLE_ALIAS@$final_path@g" ../conf/nginx.conf sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/$app.conf