deprecate wget, use curl instead

This commit is contained in:
2024-02-29 11:48:04 +01:00
parent bb1a35f645
commit f9819b3ed5
3 changed files with 6 additions and 6 deletions

View File

@@ -3,7 +3,7 @@
WEB=$1
TMP=.status.tmp
wget -qO $TMP $WEB
curl -m 10 -s -o $TMP $WEB
STATUS=$(grep "Termination Status" $TMP | perl -pe "s/.*\<dd\>(.+)\<.*/\1/"
)

View File

@@ -3,7 +3,7 @@
CURDIR=$(dirname "$(readlink -f "$0")")
source "$CURDIR"/shared-functions.so
IP=$(wget -T 5 -t 2 -q -O - $IPSERV4)
IP=$(curl -m 10 -s -o - $IPSERV4)
EXIT="$?"
if [ "$var_conn" == "on" ]; then
@@ -25,7 +25,7 @@ if [ "$var_conn" == "on" ]; then
# If request was successful, try IPv6 as well
if [ "$EXIT" != "fail" ]; then
IP6=$(wget -T 5 -t 2 -q -O - $IPSERV6)
IP6=$(curl -m 10 -s -o - $IPSERV6)
EXIT="$?"
if ([ "$EXIT" == 4 ] || [ "$EXIT" == 6 ] || [ "$EXIT" == 28 ]); then
TEXT="t/o"

View File

@@ -38,7 +38,7 @@ function check_mailqueue {
# SVN STATUS
function check_svn {
if isonline; then
STATUS=$(wget -T 5 -q -O - $SVNSTATUS)
STATUS=$(curl -m 5 -s -o - $SVNSTATUS)
EXIT="$?"
if ([ "$EXIT" == 4 ] || [ "$EXIT" == 6 ] || [ "$EXIT" == 28 ]); then
SVN="t/o"