Merge pull request #781 from orazioedoardo/patch-for-buster-2

Only use iptables-legacy if platform is Buster
This commit is contained in:
4s3ti 2019-07-03 16:07:47 +01:00 committed by GitHub
commit fb4405978a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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