From 96b4cc262a17cbc799980ffaf7397cfe5ecb4f7d Mon Sep 17 00:00:00 2001 From: garciadeblas Date: Mon, 6 Jul 2020 15:15:03 +0000 Subject: [PATCH] Fix bug 1125: iptables must be installed and configured if not present Change-Id: I724798ac654358564749934165fa4ed11926cb6b Signed-off-by: garciadeblas --- installers/full_install_osm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.17.1