From 3729916de9d8fe2fd8049cc936d4613732e50109 Mon Sep 17 00:00:00 2001 From: Wonderfall Date: Tue, 31 May 2016 16:40:46 +0200 Subject: [PATCH] Update ngxproxy --- boring-nginx/ngxproxy | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/boring-nginx/ngxproxy b/boring-nginx/ngxproxy index 4a4b0b2..11e106a 100644 --- a/boring-nginx/ngxproxy +++ b/boring-nginx/ngxproxy @@ -28,7 +28,7 @@ read -p "Webroot (default is /): " WEBROOT if [ "$WEBROOT" == "" ]; then WEBROOT="/" elif [ "$WEBROOT" != "/" ]; then - echo "WARNING: Depending on the app, you might have to add a proxy header to get your custom webroot working." + echo "WARNING: You might have to add a proxy header to get your custom webroot working." while [[ "$CONFIGURE_WEBROOT" != "y" && "$CONFIGURE_WEBROOT" != "n" ]]; do read -p "Is it required (by the app) to configure it? [y/n]: " CONFIGURE_WEBROOT @@ -99,11 +99,9 @@ while [ "$MAX_BODY_SIZE" == "" ]; do read -p "Max body size in MB (integer/n): " MAX_BODY_SIZE done -if ! [ "$MAX_BODY_SIZE" -eq "$MAX_BODY_SIZE" ] 2>/dev/null; then - if [ "$MAX_BODY_SIZE" != "n" ]; then - echo "ERROR: Incorrect value." - exit 1 - fi +if ! [ "$MAX_BODY_SIZE" -eq "$MAX_BODY_SIZE" ] 2>/dev/null && [ "$MAX_BODY_SIZE" != "n" ]; then + echo "ERROR: Incorrect value." + exit 1 fi if [ "$MAX_BODY_SIZE" != "n" ]; then