Make salt bootstrap work on systems without python
This commit is contained in:
parent
b4aa8c0061
commit
31894171d3
|
@ -1,6 +1,12 @@
|
|||
#!/bin/sh -
|
||||
|
||||
# We just download the bootstrap script by default and execute that.
|
||||
python \
|
||||
-c 'import urllib; print urllib.urlopen("http://bootstrap.saltstack.org").read()' \
|
||||
| sh -s -- "$@"
|
||||
if [ -x /usr/bin/fetch ]; then
|
||||
/usr/bin/fetch -o - http://bootstrap.saltstack.org | sh -s -- "$@"
|
||||
elif [ -x /usr/bin/curl ]; then
|
||||
/usr/bin/curl -L http://bootstrap.saltstack.org | sh -s -- "$@"
|
||||
else
|
||||
python \
|
||||
-c 'import urllib; print urllib.urlopen("http://bootstrap.saltstack.org").read()' \
|
||||
| sh -s -- "$@"
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue