1
0
mirror of synced 2024-11-22 04:56:03 +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:
# 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."
exit 1
fi

View File

@ -13,7 +13,7 @@
# Check https://libreswan.org and update version number if necessary
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."
exit 1
fi