Small improvement to OS detection
This commit is contained in:
parent
d82d6d00b3
commit
7f3b94308d
@ -33,7 +33,7 @@ VPN_PASSWORD=your_very_secure_password
|
|||||||
# IMPORTANT: Be sure to read important notes at the URL below:
|
# IMPORTANT: Be sure to read important notes at the URL below:
|
||||||
# https://github.com/hwdsl2/setup-ipsec-vpn#important-notes
|
# https://github.com/hwdsl2/setup-ipsec-vpn#important-notes
|
||||||
|
|
||||||
if [ "$(lsb_release -si)" != "Ubuntu" ] && [ "$(lsb_release -si)" != "Debian" ]; then
|
if [ "$(lsb_release -si 2>/dev/null)" != "Ubuntu" ] && [ "$(lsb_release -si 2>/dev/null)" != "Debian" ]; then
|
||||||
echo "Looks like you aren't running this script on a Ubuntu or Debian system."
|
echo "Looks like you aren't running this script on a Ubuntu or Debian system."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
# Check https://libreswan.org and update version number if necessary
|
# Check https://libreswan.org and update version number if necessary
|
||||||
SWAN_VER=3.16
|
SWAN_VER=3.16
|
||||||
|
|
||||||
if [ "$(lsb_release -si)" != "Ubuntu" ] && [ "$(lsb_release -si)" != "Debian" ]; then
|
if [ "$(lsb_release -si 2>/dev/null)" != "Ubuntu" ] && [ "$(lsb_release -si 2>/dev/null)" != "Debian" ]; then
|
||||||
echo "Looks like you aren't running this script on a Ubuntu or Debian system."
|
echo "Looks like you aren't running this script on a Ubuntu or Debian system."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user