verify function improved

htpasswd is not a warning anymore, test is passed with an info text displayed.
This commit is contained in:
Cristhian Martínez Ochoa 2018-02-13 18:41:40 -07:00
parent 078e6b3634
commit 2a8fcecef6

View file

@ -385,6 +385,7 @@ app_purge() {
webinoly_verify() {
local error="0"
local warning="0"
local info="0"
echo "${gre} Verifying integrity of the entire Webinoly system... ${end}"
echo "${red}"
@ -452,8 +453,8 @@ webinoly_verify() {
error="1"
fi
if [[ ! -a /etc/nginx/.htpasswd && $(conf_read nginx-optim) == "true" ]]; then
echo "[WARNING] File: /etc/nginx/.htpasswd not found!"
warning="1"
echo "[INFO] File: /etc/nginx/.htpasswd not found!"
info="1"
fi
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!"