mirror of
https://github.com/pivpn/pivpn.git
synced 2024-12-19 03:10:16 +00:00
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:
parent
d0c10db6ec
commit
3dcaea9067
1 changed files with 7 additions and 1 deletions
|
@ -70,7 +70,13 @@ do
|
|||
DAYS="$_val"
|
||||
;;
|
||||
-i|--iOS)
|
||||
iOS=1
|
||||
OVPN12_Compatible=$(cat /etc/pivpn/OVPN12_Compatible)
|
||||
if [[ ${OVPN12_Compatible} == "true" ]]; then
|
||||
iOS=1
|
||||
else
|
||||
echo "This function is not compatable with OVPN 2.4"
|
||||
exit 1
|
||||
fi
|
||||
;;
|
||||
-h|--help)
|
||||
helpFunc
|
||||
|
|
Loading…
Reference in a new issue