From 097145392c4fd4c80022315571ef3e01fbcf5b3b Mon Sep 17 00:00:00 2001 From: EWouters Date: Tue, 14 Mar 2017 15:39:07 +1300 Subject: [PATCH] set -e and set +e around line 800 to 815 I am not sure why this statement does not work with -e. We can also remove the set -e statement altogether. --- auto_install/install.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/auto_install/install.sh b/auto_install/install.sh index 0d7cf15..6a22ad7 100755 --- a/auto_install/install.sh +++ b/auto_install/install.sh @@ -798,6 +798,7 @@ confOpenVPN() { $SUDO mkdir /etc/openvpn/easy-rsa/pki # Write out new vars file + set +e IFS= read -d '' String <<"EOF" if [ -z "$EASYRSA_CALLER" ]; then echo "Nope." >&2 @@ -811,6 +812,7 @@ set_var EASYRSA_CURVE secp384r1 EOF echo "${String}" | $SUDO tee /etc/openvpn/easy-rsa/vars >/dev/null + set -e # Edit the KEY_SIZE variable in the vars file to set user chosen key size cd /etc/openvpn/easy-rsa || exit @@ -1266,6 +1268,7 @@ main() { echo "${pivpnProto}" > /tmp/pivpnPROTO echo "::: Using port: $PORT" echo ${PORT} > /tmp/INSTALL_PORT + echo ":::" # Only try to set static on Raspbian if [[ $PLAT != "Raspbian" ]]; then