diff --git a/inc/cpcheck.inc b/inc/cpcheck.inc index 47465bd52..f7ed36f3e 100644 --- a/inc/cpcheck.inc +++ b/inc/cpcheck.inc @@ -136,7 +136,7 @@ gitenv_askupdate() { wgetver_check() { if [[ "$(wget -V | head -n1 | awk '{print $3}' | grep -q ${WGET_VERSION} >/dev/null 2>&1; echo $?)" != '0' ]]; then - if [ -f "${SCRIPT_DIR}/addons/wget.sh" ]; then + if [[ -f "${SCRIPT_DIR}/addons/wget.sh" && -f /usr/local/sbin/nginx ]]; then echo "update wget to ${WGET_VERSION} version... one time task" sleep 6 "${SCRIPT_DIR}/addons/wget.sh" install