From: garciadeblas Date: Mon, 6 Jul 2020 15:15:03 +0000 (+0000) Subject: Fix bug 1125: iptables must be installed and configured if not present X-Git-Tag: v8.0.0rc3~25 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F33%2F9333%2F2;p=osm%2Fdevops.git Fix bug 1125: iptables must be installed and configured if not present Change-Id: I724798ac654358564749934165fa4ed11926cb6b Signed-off-by: garciadeblas --- diff --git a/installers/full_install_osm.sh b/installers/full_install_osm.sh index a8ac828a..49d5fa22 100755 --- a/installers/full_install_osm.sh +++ b/installers/full_install_osm.sh @@ -254,7 +254,7 @@ EONG #Safe unattended install of iptables-persistent function check_install_iptables_persistent(){ echo -e "\nChecking required packages: iptables-persistent" - if dpkg -l iptables-persistent &>/dev/null; then + if ! dpkg -l iptables-persistent &>/dev/null; then echo -e " Not installed.\nInstalling iptables-persistent requires root privileges" echo iptables-persistent iptables-persistent/autosave_v4 boolean true | sudo debconf-set-selections echo iptables-persistent iptables-persistent/autosave_v6 boolean true | sudo debconf-set-selections