mirror of
https://github.com/hwdsl2/setup-ipsec-vpn.git
synced 2024-07-01 18:15:43 +02:00
Use full path for ipsec command
This commit is contained in:
parent
e97f1d2598
commit
4f198ab994
|
@ -28,7 +28,7 @@ if [ "$(id -u)" != 0 ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ipsec --version 2>/dev/null | grep -qs "Libreswan"
|
/usr/local/sbin/ipsec --version 2>/dev/null | grep -qs "Libreswan"
|
||||||
if [ "$?" != "0" ]; then
|
if [ "$?" != "0" ]; then
|
||||||
echo "This upgrade script requires that you already have Libreswan installed."
|
echo "This upgrade script requires that you already have Libreswan installed."
|
||||||
echo "Aborting."
|
echo "Aborting."
|
||||||
|
@ -37,7 +37,7 @@ fi
|
||||||
|
|
||||||
clear
|
clear
|
||||||
|
|
||||||
ipsec --version 2>/dev/null | grep -qs "Libreswan ${SWAN_VER}"
|
/usr/local/sbin/ipsec --version 2>/dev/null | grep -qs "Libreswan ${SWAN_VER}"
|
||||||
if [ "$?" = "0" ]; then
|
if [ "$?" = "0" ]; then
|
||||||
echo "You already have Libreswan ${SWAN_VER} installed! "
|
echo "You already have Libreswan ${SWAN_VER} installed! "
|
||||||
echo
|
echo
|
||||||
|
@ -100,7 +100,7 @@ tar xvzf "$SWAN_FILE" && rm -f "$SWAN_FILE"
|
||||||
cd "libreswan-${SWAN_VER}" || { echo "Failed to enter Libreswan source directory. Aborting."; exit 1; }
|
cd "libreswan-${SWAN_VER}" || { echo "Failed to enter Libreswan source directory. Aborting."; exit 1; }
|
||||||
make programs && make install
|
make programs && make install
|
||||||
|
|
||||||
ipsec --version 2>/dev/null | grep -qs "${SWAN_VER}"
|
/usr/local/sbin/ipsec --version 2>/dev/null | grep -qs "${SWAN_VER}"
|
||||||
if [ "$?" != "0" ]; then
|
if [ "$?" != "0" ]; then
|
||||||
echo
|
echo
|
||||||
echo "Sorry, something went wrong."
|
echo "Sorry, something went wrong."
|
||||||
|
|
|
@ -33,7 +33,7 @@ if [ "$(id -u)" != 0 ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ipsec --version 2>/dev/null | grep -qs "Libreswan"
|
/usr/local/sbin/ipsec --version 2>/dev/null | grep -qs "Libreswan"
|
||||||
if [ "$?" != "0" ]; then
|
if [ "$?" != "0" ]; then
|
||||||
echo "This upgrade script requires that you already have Libreswan installed."
|
echo "This upgrade script requires that you already have Libreswan installed."
|
||||||
echo "Aborting."
|
echo "Aborting."
|
||||||
|
@ -42,7 +42,7 @@ fi
|
||||||
|
|
||||||
clear
|
clear
|
||||||
|
|
||||||
ipsec --version 2>/dev/null | grep -qs "Libreswan ${SWAN_VER}"
|
/usr/local/sbin/ipsec --version 2>/dev/null | grep -qs "Libreswan ${SWAN_VER}"
|
||||||
if [ "$?" = "0" ]; then
|
if [ "$?" = "0" ]; then
|
||||||
echo "You already have Libreswan ${SWAN_VER} installed! "
|
echo "You already have Libreswan ${SWAN_VER} installed! "
|
||||||
echo
|
echo
|
||||||
|
@ -130,7 +130,7 @@ tar xvzf "$SWAN_FILE" && rm -f "$SWAN_FILE"
|
||||||
cd "libreswan-${SWAN_VER}" || { echo "Failed to enter Libreswan source directory. Aborting."; exit 1; }
|
cd "libreswan-${SWAN_VER}" || { echo "Failed to enter Libreswan source directory. Aborting."; exit 1; }
|
||||||
make programs && make install
|
make programs && make install
|
||||||
|
|
||||||
ipsec --version 2>/dev/null | grep -qs "${SWAN_VER}"
|
/usr/local/sbin/ipsec --version 2>/dev/null | grep -qs "${SWAN_VER}"
|
||||||
if [ "$?" != "0" ]; then
|
if [ "$?" != "0" ]; then
|
||||||
echo
|
echo
|
||||||
echo "Sorry, something went wrong."
|
echo "Sorry, something went wrong."
|
||||||
|
|
Loading…
Reference in New Issue
Block a user