summaryrefslogtreecommitdiff
path: root/main/iptables/iptables.post-upgrade
diff options
context:
space:
mode:
authorpsykose <alice@ayaya.dev>2023-05-12 18:29:29 +0000
committerpsykose <alice@ayaya.dev>2023-05-12 20:29:29 +0200
commit79455bf13e2578715faf91790a61c9d7759d2502 (patch)
treef408cb95121800d0088672444b7643450a83ea4f /main/iptables/iptables.post-upgrade
parentd19bca27988966a17650e22c1074cedb3fd6b77e (diff)
downloadaports-79455bf13e2578715faf91790a61c9d7759d2502.zip
main/iptables: add upgrade warnings
Diffstat (limited to 'main/iptables/iptables.post-upgrade')
-rw-r--r--main/iptables/iptables.post-upgrade14
1 files changed, 14 insertions, 0 deletions
diff --git a/main/iptables/iptables.post-upgrade b/main/iptables/iptables.post-upgrade
new file mode 100644
index 00000000000..8b1065dc5a0
--- /dev/null
+++ b/main/iptables/iptables.post-upgrade
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+ver_old=$2
+
+if [ "$(apk version -t "$ver_old" '1.8.9-r4')" = '<' ]; then
+ cat >&2 <<-EOF
+ *
+ * the "iptables" commands now point to xtables-nft-multi
+ * instead of xtables-legacy-multi. this means that by default,
+ * the kernel nftables backend is used instead of the iptables one.
+ * because mixing backends is not supported, you should reboot your system.
+ *
+ EOF
+fi