Check if -i iOS can be used

the -i iOS function is not compatible with OVPN 2.4.  This change checks to ensure that the user is not using this version before attempting to create an OVPN12 file.
This commit is contained in:
IcedComputer 2019-10-18 21:09:54 -07:00 committed by GitHub
parent d0c10db6ec
commit 3dcaea9067
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -70,7 +70,13 @@ do
DAYS="$_val" DAYS="$_val"
;; ;;
-i|--iOS) -i|--iOS)
OVPN12_Compatible=$(cat /etc/pivpn/OVPN12_Compatible)
if [[ ${OVPN12_Compatible} == "true" ]]; then
iOS=1 iOS=1
else
echo "This function is not compatable with OVPN 2.4"
exit 1
fi
;; ;;
-h|--help) -h|--help)
helpFunc helpFunc