mirror of
https://github.com/pivpn/pivpn.git
synced 2024-12-19 11:20:15 +00:00
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.
This commit is contained in:
parent
7315353179
commit
097145392c
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue