Merge pull request #9112 from sitepoint/wget_salt_dl

Attempt fetching salt bootstrap script with wget
This commit is contained in:
Brian Cain 2017-10-26 08:33:50 -07:00 committed by GitHub
commit f689411007
1 changed files with 2 additions and 0 deletions

View File

@ -5,6 +5,8 @@ if [ -x /usr/bin/fetch ]; then
/usr/bin/fetch -o bootstrap-salt.sh https://raw.githubusercontent.com/saltstack/salt-bootstrap/stable/bootstrap-salt.sh
elif [ -x /usr/bin/curl ]; then
/usr/bin/curl -L -O https://raw.githubusercontent.com/saltstack/salt-bootstrap/stable/bootstrap-salt.sh
elif [ -x /usr/bin/wget ]; then
/usr/bin/wget -O bootstrap-salt.sh https://raw.githubusercontent.com/saltstack/salt-bootstrap/stable/bootstrap-salt.sh
else
python -c 'import urllib; urllib.urlretrieve("https://raw.githubusercontent.com/saltstack/salt-bootstrap/stable/bootstrap-salt.sh", "bootstrap-salt.sh")'
fi