2013-04-18 12:41:34 +00:00
|
|
|
#!/bin/sh -
|
|
|
|
|
2013-08-30 00:40:59 +00:00
|
|
|
# We just download the bootstrap script by default and execute that.
|
2013-11-21 15:28:26 +00:00
|
|
|
if [ -x /usr/bin/fetch ]; then
|
2017-08-08 20:24:06 +00:00
|
|
|
/usr/bin/fetch -o bootstrap-salt.sh https://raw.githubusercontent.com/saltstack/salt-bootstrap/stable/bootstrap-salt.sh
|
2013-11-21 15:28:26 +00:00
|
|
|
elif [ -x /usr/bin/curl ]; then
|
2017-08-08 20:24:06 +00:00
|
|
|
/usr/bin/curl -L -O https://raw.githubusercontent.com/saltstack/salt-bootstrap/stable/bootstrap-salt.sh
|
2017-10-26 02:41:40 +00:00
|
|
|
elif [ -x /usr/bin/wget ]; then
|
|
|
|
/usr/bin/wget -O bootstrap-salt.sh https://raw.githubusercontent.com/saltstack/salt-bootstrap/stable/bootstrap-salt.sh
|
2013-11-21 15:28:26 +00:00
|
|
|
else
|
2017-08-08 20:24:06 +00:00
|
|
|
python -c 'import urllib; urllib.urlretrieve("https://raw.githubusercontent.com/saltstack/salt-bootstrap/stable/bootstrap-salt.sh", "bootstrap-salt.sh")'
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -e bootstrap-salt.sh ]; then
|
|
|
|
sh bootstrap-salt.sh "$@"
|
|
|
|
else
|
|
|
|
exit 1
|
2013-11-21 15:28:26 +00:00
|
|
|
fi
|