1
0
mirror of synced 2024-11-25 22:36:04 +03:00

Small improvement to OS detection

This commit is contained in:
hwdsl2 2016-01-17 20:17:18 -06:00
parent d82d6d00b3
commit 7f3b94308d
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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