Some minor fixes..

This commit is contained in:
Christoph 2018-05-18 21:50:14 +02:00
parent ebff5a557b
commit 5e8a0f893b
2 changed files with 8 additions and 1 deletions

View File

@ -663,6 +663,7 @@ EOF
# - If the configuration file contains all keys/certs, only the configuration file
# - with its suffix '.ovpn' is needed.
# -
_failed=false
echononl " Create zip archive '${KEY_CN}-${NEW_KEY_NAME}.tblk.zip' for MAC OS .."
target_macos_tblk_dir="${_home_dir}/VPN/${KEY_CN}-${NEW_KEY_NAME}/${KEY_CN}-${NEW_KEY_NAME}.tblk"
mkdir "$target_macos_tblk_dir" > $log_file 2>&1
@ -699,6 +700,12 @@ EOF
if [[ $? -ne 0 ]] ; then
_failed=true
fi
if $_failed ; then
echo_failed
error "$(cat $log_file)"
else
echo_ok
fi
fi

View File

@ -234,7 +234,7 @@ echo "Insert IP-Address/Hostname of OpenVPN Server"
echo ""
OPENVPN_SERVER=""
if [[ -n "$DEFAULT_SERVER" ]] ; then
echononl "Server Port [${DEFAULT_SERVER}]: "
echononl "OpenVPN Server [${DEFAULT_SERVER}]: "
read OPENVPN_SERVER
if [[ "X$OPENVPN_SERVER" = "X" ]]; then
OPENVPN_SERVER="$DEFAULT_SERVER"