mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2025-09-04 03:29:57 +00:00
update-ngxblocker: remove wget check from check_depends()
* downloads are now via curl so remove wget check from check_depends()
This commit is contained in:
parent
af197cb559
commit
0b3dcbe86d
1 changed files with 1 additions and 7 deletions
|
@ -201,13 +201,7 @@ check_mail_depends() {
|
||||||
}
|
}
|
||||||
|
|
||||||
check_depends() {
|
check_depends() {
|
||||||
# centos does not have wget installed by default
|
# centos does not have which by default
|
||||||
if ! wget --help >/dev/null 2>&1; then
|
|
||||||
printf "${BOLDRED}ERROR${RESET}: $0 requires: 'wget' => ${BOLDWHITE}cannot download files.${RESET}\n"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# centos also does not have which by default
|
|
||||||
if [ ! -x /usr/bin/curl ]; then
|
if [ ! -x /usr/bin/curl ]; then
|
||||||
printf "${BOLDRED}ERROR${RESET}: $0 requires: 'curl' => ${BOLDWHITE}cannot check remote version.${RESET}\n"
|
printf "${BOLDRED}ERROR${RESET}: $0 requires: 'curl' => ${BOLDWHITE}cannot check remote version.${RESET}\n"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Add table
Reference in a new issue