switch to a centralized CURLOPT layout

This commit is contained in:
Tobias Schmidl 2018-11-27 09:08:03 +01:00
parent 69b71e9b27
commit ba6ae6a6f7
2 changed files with 8 additions and 6 deletions

View file

@ -1,6 +1,7 @@
#! /bin/bash
# fail immediately on error
set -e
CURLOPT=${CURLOPT:-"--location --remote-time --show-error --silent --fail --tlsv1.2"}
apt update \
&& apt dist-upgrade \
@ -32,9 +33,9 @@ apt update \
&& apt-file update
# node related
curl -RLSsf1 https://deb.nodesource.com/setup_10.x | bash -
curl $CURLOPT https://deb.nodesource.com/setup_10.x | bash -
apt-get install -y nodejs
# python3 related
curl -RLSsf1 https://bootstrap.pypa.io/get-pip.py | python2
curl -RLSsf1 https://bootstrap.pypa.io/get-pip.py | python3
curl $CURLOPT https://bootstrap.pypa.io/get-pip.py | python2
curl $CURLOPT https://bootstrap.pypa.io/get-pip.py | python3

View file

@ -1,9 +1,10 @@
#! /bin/sh
#! /bin/bash
# fail immediately on error
set -e
CURLOPT=${CURLOPT:-"--location --remote-time --show-error --silent --fail --tlsv1.2"}
# root part
curl -RLSsf1 https://github.com/schtobia/bootstrap/raw/master/bootstrap-root.sh | sudo -SEH bash -
curl $CURLOPT https://github.com/schtobia/bootstrap/raw/master/bootstrap-root.sh | sudo -SEH bash -
# userspace part
curl -RLSsf1 https://github.com/schtobia/bootstrap/raw/master/bootstrap-user.sh | bash -
curl $CURLOPT https://github.com/schtobia/bootstrap/raw/master/bootstrap-user.sh | bash -