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
|
2014-04-30 22:32:20 +00:00
|
|
|
/usr/bin/fetch -o - https://raw.githubusercontent.com/saltstack/salt-bootstrap/stable/bootstrap-salt.sh | sh -s -- "$@"
|
2013-11-21 15:28:26 +00:00
|
|
|
elif [ -x /usr/bin/curl ]; then
|
2014-04-30 22:32:20 +00:00
|
|
|
/usr/bin/curl -L https://raw.githubusercontent.com/saltstack/salt-bootstrap/stable/bootstrap-salt.sh | sh -s -- "$@"
|
2013-11-21 15:28:26 +00:00
|
|
|
else
|
|
|
|
python \
|
2014-04-30 22:32:20 +00:00
|
|
|
-c 'import urllib; print urllib.urlopen("https://raw.githubusercontent.com/saltstack/salt-bootstrap/stable/bootstrap-salt.sh").read()' \
|
2013-11-21 15:28:26 +00:00
|
|
|
| sh -s -- "$@"
|
|
|
|
fi
|