mirror of
https://github.com/pivpn/pivpn.git
synced 2024-12-20 03:40:17 +00:00
self check better check of incompatible versions
This commit is contained in:
parent
e110286a13
commit
b0c473c9cc
1 changed files with 7 additions and 7 deletions
|
@ -166,9 +166,9 @@ setupVars="/etc/pivpn/wireguard/setupVars.conf"
|
||||||
ERR=0
|
ERR=0
|
||||||
|
|
||||||
if [ ! -f "${setupVars}" ]; then
|
if [ ! -f "${setupVars}" ]; then
|
||||||
echo "::: Missing ${setupVars}i, wireguard not installed"
|
echo "::: Missing ${setupVars}i, wireguard not installed"
|
||||||
else
|
else
|
||||||
echo "::: Selfcheck for wireguard, config from ${setupVars}"
|
echo ":: [OK] Selfcheck for wireguard, config from ${setupVars}"
|
||||||
runselfcheck
|
runselfcheck
|
||||||
dualprot='yes'
|
dualprot='yes'
|
||||||
fi
|
fi
|
||||||
|
@ -177,9 +177,9 @@ setupVars="/etc/pivpn/openvpn/setupVars.conf"
|
||||||
ERR=0
|
ERR=0
|
||||||
|
|
||||||
if [ ! -f "${setupVars}" ]; then
|
if [ ! -f "${setupVars}" ]; then
|
||||||
echo "::: Missing ${setupVars}, openvpn not installed"
|
echo ":: Missing ${setupVars}, openvpn not installed"
|
||||||
else
|
else
|
||||||
echo "::: Selfcheck for openvpn, config from ${setupVars}"
|
echo ":: [OK] Selfcheck for openvpn, config from ${setupVars}"
|
||||||
runselfcheck
|
runselfcheck
|
||||||
dualprot='yes'
|
dualprot='yes'
|
||||||
fi
|
fi
|
||||||
|
@ -187,9 +187,9 @@ fi
|
||||||
# add check for a mixed up installation
|
# add check for a mixed up installation
|
||||||
setupVars="/etc/pivpn/setupVars.conf"
|
setupVars="/etc/pivpn/setupVars.conf"
|
||||||
|
|
||||||
if [ ${dualprot} == 'yes' && -f "${setupVars}" ]; then
|
if [[ ${dualprot} == 'yes' && -f "${setupVars}" ]]; then
|
||||||
echo "::: Older ${setupVars} exists, should not be there,
|
echo ":: [ERR] Older ${setupVars} exists, should not be there,"
|
||||||
echo "::: two versions have been installed which are not compatible"
|
echo ":: [ERR] two incompatible versions have been installed"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue