From 23fc552c7510fb676dc3f13d237d13d2e5e84f3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristhian=20Mart=C3=ADnez=20Ochoa?= Date: Mon, 7 May 2018 17:18:40 -0600 Subject: [PATCH] opcache fixed - opcache not working in some cases with ssl. - now we use "spider" wget mode to check status code for custom version installer. - some files change the end of line causing issues with unix format. --- plugins/webinoly | 2 +- weby | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/webinoly b/plugins/webinoly index 6671fc1..1d87890 100644 --- a/plugins/webinoly +++ b/plugins/webinoly @@ -302,7 +302,7 @@ elif [[ $opt == "-clear-cache" ]]; then sudo chown -R www-data:www-data /var/www/$port/htdocs/php/opcache sudo chmod 644 /var/www/$port/htdocs/php/opcache/index.php fi - wget -q --spider --timeout=15 http://localhost:$port/php/opcache/ + wget --spider --no-check-certificate --timeout=15 localhost:22222/php/opcache/ > /dev/null 2>&1 & echo "${gre}- OpCache has been successfully cleared!${end}" else echo "${red}[ERROR] We can not clear OpCache because PHP and NGINX are not installed!${end}" diff --git a/weby b/weby index a74f1bd..6146177 100644 --- a/weby +++ b/weby @@ -1,7 +1,7 @@ #!/bin/bash # Webinoly Installation Script. -webyversion="1.4.1" +webyversion="1.4.2-beta" # Check OS support @@ -40,16 +40,16 @@ done if [[ $2 == "-ver="* ]]; then ver=$(echo "$2" | cut -d'=' -f 2 -s) # Be sure we have a valid server response for the requested version - code=$(wget --server-response https://qrok.es/webinoly?version=$ver 2>&1 | awk '/^ HTTP/{print $2}') + code=$(wget --server-response --spider https://qrok.es/webinoly?version=$ver 2>&1 | awk '/^ HTTP/{print $2}') # Get the last code (redirections) code="${code##*$'\n'}" echo "$(tput setaf 1)" if [[ $code == 200 ]]; then sudo wget --timeout=15 -qrO $HOME/webinoly.tar https://qrok.es/webinoly?version=$ver - sudo rm webinoly?version=$ver webyversion="$ver" - [[ $ver == "beta" ]] && echo "[WARNING] You are installing a BETA version of Webinoly and it's not recommended for production enviroments. $(tput sgr0)" + [[ $ver == "beta" ]] && echo "[WARNING] You are installing a BETA version of Webinoly and it's not recommended for production enviroments." + echo $(tput sgr0) else echo "[ERROR] Version not found or not available! ($code) $(tput sgr0)" exit 1