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.
This commit is contained in:
parent
31bb518b4e
commit
23fc552c75
2 changed files with 5 additions and 5 deletions
|
@ -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}"
|
||||
|
|
8
weby
8
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
|
||||
|
|
Loading…
Add table
Reference in a new issue