Skip to content

Instantly share code, notes, and snippets.

@johntron
Created July 30, 2015 23:24
Show Gist options
  • Save johntron/d981f23f6a6075637847 to your computer and use it in GitHub Desktop.
Save johntron/d981f23f6a6075637847 to your computer and use it in GitHub Desktop.
#!/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