verify function improved
htpasswd is not a warning anymore, test is passed with an info text displayed.
This commit is contained in:
parent
078e6b3634
commit
2a8fcecef6
|
@ -385,6 +385,7 @@ app_purge() {
|
||||||
webinoly_verify() {
|
webinoly_verify() {
|
||||||
local error="0"
|
local error="0"
|
||||||
local warning="0"
|
local warning="0"
|
||||||
|
local info="0"
|
||||||
echo "${gre} Verifying integrity of the entire Webinoly system... ${end}"
|
echo "${gre} Verifying integrity of the entire Webinoly system... ${end}"
|
||||||
echo "${red}"
|
echo "${red}"
|
||||||
|
|
||||||
|
@ -452,8 +453,8 @@ webinoly_verify() {
|
||||||
error="1"
|
error="1"
|
||||||
fi
|
fi
|
||||||
if [[ ! -a /etc/nginx/.htpasswd && $(conf_read nginx-optim) == "true" ]]; then
|
if [[ ! -a /etc/nginx/.htpasswd && $(conf_read nginx-optim) == "true" ]]; then
|
||||||
echo "[WARNING] File: /etc/nginx/.htpasswd not found!"
|
echo "[INFO] File: /etc/nginx/.htpasswd not found!"
|
||||||
warning="1"
|
info="1"
|
||||||
fi
|
fi
|
||||||
if [[ ! -a /etc/nginx/conf.d/blockips.conf && $(conf_read nginx-optim) == "true" ]]; then
|
if [[ ! -a /etc/nginx/conf.d/blockips.conf && $(conf_read nginx-optim) == "true" ]]; then
|
||||||
echo "[WARNING] File: /etc/nginx/conf.d/blockips.conf not found!"
|
echo "[WARNING] File: /etc/nginx/conf.d/blockips.conf not found!"
|
||||||
|
|
Loading…
Reference in a new issue