Skip to content

Commit

Permalink
Install wget instead of curl
Browse files Browse the repository at this point in the history
  • Loading branch information
swelljoe committed Jan 2, 2019
1 parent a5dea60 commit c954ddb
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions virtualmin-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -183,20 +183,20 @@ while true; do
elif [ -x "/usr/bin/fetch" ]; then
download="/usr/bin/fetch"
break
elif [ "$curl_attempted" = 1 ]; then
printf "${RED}No HTTP client available. Could not install curl. Cannot continue.${NORMAL}\\n"
elif [ "$wget_attempted" = 1 ]; then
printf "${RED}No HTTP client available. Could not install wget. Cannot continue.${NORMAL}\\n"
exit 1
fi

# Made it here without finding a downloader, so try to install one
curl_attempted=1
wget_attempted=1
if [ -x /usr/bin/dnf ]; then
dnf -y install curl >> $log
dnf -y install wget >> $log
elif [ -x /usr/bin/yum ]; then
yum -y install curl >> $log
yum -y install wget >> $log
elif [ -x /usr/bin/apt-get ]; then
apt-get update >> /dev/null
apt-get -y -q install curl >> $log
apt-get -y -q install wget >> $log
fi
done
if [ -z "$download" ]; then
Expand Down

0 comments on commit c954ddb

Please sign in to comment.