Release 22.05 #155

Merged
jlecour merged 81 commits from unstable into stable 2022-05-10 17:01:18 +02:00
Showing only changes of commit b4f35af35c - Show all commits

View file

@ -426,9 +426,13 @@ backup_iptables() {
debug "Backup iptables"
iptables_bin=$(command -v iptables)
nft_bin=$(command -v nft)
if [ -n "${nft_bin}" ]; then
debug "* nft found, skip iptables"
else
if [ -n "${iptables_bin}" ]; then
last_result=$({ ${iptables_bin} -L -n -v; ${iptables_bin} -t filter -L -n -v; } > "${backup_dir}/iptables.txt")
last_result=$({ ${iptables_bin} -L -n -v; ${iptables_bin} -t filter -L -n -v; } >> "${backup_dir}/iptables.txt")
last_rc=$?
if [ ${last_rc} -eq 0 ]; then
@ -458,6 +462,7 @@ backup_iptables() {
else
debug "* iptables-save not found"
fi
fi
}
backup_sysctl() {