Created
July 30, 2015 23:24
-
-
Save johntron/d981f23f6a6075637847 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh - | |
# We just download the bootstrap script by default and execute that. | |
if [ -x /usr/bin/fetch ]; then | |
/usr/bin/fetch -o - https://raw.githubusercontent.com/johntron/salt-bootstrap/hotfix/ubuntu-urllib3/bootstrap-salt.sh | sh -s -- "$@" | |
elif [ -x /usr/bin/curl ]; then | |
/usr/bin/curl -L https://raw.githubusercontent.com/johntron/salt-bootstrap/hotfix/ubuntu-urllib3/bootstrap-salt.sh | sh -s -- "$@" | |
else | |
python \ | |
-c 'import urllib; print urllib.urlopen("https://raw.githubusercontent.com/johntron/salt-bootstrap/hotfix/ubuntu-urllib3/bootstrap-salt.sh").read()' \ | |
| sh -s -- "$@" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment