Update bootstrap.sh

This commit is contained in:
Tobias Schmidl 2021-02-23 08:04:11 +00:00
parent 330599d84b
commit 23a05c3439

View file

@ -1,12 +1,12 @@
#! /bin/bash
# fail immediately on error
set -e
CURLOPT=${CURLOPT:-"--location --remote-time --show-error --silent --fail --tlsv1.2"}
CURLOPT=${CURLOPT:-"--location --remote-time --remote-name --show-error --silent --fail --tlsv1.2"}
# root part
# shellcheck disable=SC2086
curl $CURLOPT https://github.com/schtobia/bootstrap/raw/master/bootstrap-root.sh | sudo -SEH bash -
curl "$CURLOPT" https://gitlab.com/schtobia/bootstrap/raw/master/bootstrap-root.sh \
&& chmod +x bootstrap-root.sh
# userspace part
# shellcheck disable=SC2086
curl $CURLOPT https://github.com/schtobia/bootstrap/raw/master/bootstrap-user.sh | bash -
curl "$CURLOPT" https://gitlab.com/schtobia/bootstrap/raw/master/bootstrap-user.sh \
&& chmod +x bootstrap-user.sh