Skip to content

Commit c954ddb

Browse files
committed
Install wget instead of curl
1 parent a5dea60 commit c954ddb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

virtualmin-install.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -183,20 +183,20 @@ while true; do
183183
elif [ -x "/usr/bin/fetch" ]; then
184184
download="/usr/bin/fetch"
185185
break
186-
elif [ "$curl_attempted" = 1 ]; then
187-
printf "${RED}No HTTP client available. Could not install curl. Cannot continue.${NORMAL}\\n"
186+
elif [ "$wget_attempted" = 1 ]; then
187+
printf "${RED}No HTTP client available. Could not install wget. Cannot continue.${NORMAL}\\n"
188188
exit 1
189189
fi
190190

191191
# Made it here without finding a downloader, so try to install one
192-
curl_attempted=1
192+
wget_attempted=1
193193
if [ -x /usr/bin/dnf ]; then
194-
dnf -y install curl >> $log
194+
dnf -y install wget >> $log
195195
elif [ -x /usr/bin/yum ]; then
196-
yum -y install curl >> $log
196+
yum -y install wget >> $log
197197
elif [ -x /usr/bin/apt-get ]; then
198198
apt-get update >> /dev/null
199-
apt-get -y -q install curl >> $log
199+
apt-get -y -q install wget >> $log
200200
fi
201201
done
202202
if [ -z "$download" ]; then

0 commit comments

Comments
 (0)