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