From 66dcd69fd50d822d1a6dd98b359b7ff2afddac6b Mon Sep 17 00:00:00 2001 From: Orazio Date: Wed, 3 Jul 2019 10:13:22 +0200 Subject: [PATCH] Only use iptables-legacy if platform is Buster --- auto_install/install.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/auto_install/install.sh b/auto_install/install.sh index 06daddf..4cb1a3a 100755 --- a/auto_install/install.sh +++ b/auto_install/install.sh @@ -479,8 +479,10 @@ install_dependent_packages() { # No spinner - conflicts with set -e declare -a argArray1=("${!1}") - $SUDO update-alternatives --set iptables /usr/sbin/iptables-legacy - $SUDO update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy + if [[ ${OSCN} == "buster" ]]; then + $SUDO update-alternatives --set iptables /usr/sbin/iptables-legacy + $SUDO update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy + fi echo iptables-persistent iptables-persistent/autosave_v4 boolean true | $SUDO debconf-set-selections echo iptables-persistent iptables-persistent/autosave_v6 boolean false | $SUDO debconf-set-selections