mirror of
https://github.com/pivpn/pivpn.git
synced 2025-01-31 16:59:48 +00:00
Only use iptables-legacy if platform is Buster
This commit is contained in:
parent
7aa803720c
commit
66dcd69fd5
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue