aboutsummaryrefslogtreecommitdiff
path: root/iptables/use-sh-iptables-apply.patch
diff options
context:
space:
mode:
authorWoodpecker CI <emmett1.2miligrams@protonmail.com>2025-09-11 19:08:39 +0000
committerWoodpecker CI <emmett1.2miligrams@protonmail.com>2025-09-11 19:08:39 +0000
commit7bcab9f10f7c2fd8575a2cdb1af34df2e2a507d1 (patch)
tree8cf9d6ba17a283f679676a8cae7a23f86bcb644e /iptables/use-sh-iptables-apply.patch
parent8722d793c5f2694a61b35d515434c11d7fce5780 (diff)
downloadalicelinux-7bcab9f10f7c2fd8575a2cdb1af34df2e2a507d1.tar.gz
alicelinux-7bcab9f10f7c2fd8575a2cdb1af34df2e2a507d1.zip
Woodpecker CI 5b6da4a4ac4587f28f132509e968b110a3a4a689 [SKIP CI]
Diffstat (limited to 'iptables/use-sh-iptables-apply.patch')
-rw-r--r--iptables/use-sh-iptables-apply.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/iptables/use-sh-iptables-apply.patch b/iptables/use-sh-iptables-apply.patch
new file mode 100644
index 00000000..b31fc948
--- /dev/null
+++ b/iptables/use-sh-iptables-apply.patch
@@ -0,0 +1,39 @@
+From: Simon Frankenberger <simon-alpine@fraho.eu>
+
+make iptables-apply use posix sh
+
+--- a/iptables/iptables-apply
++++ b/iptables/iptables-apply
+@@ -1,4 +1,4 @@
+-#!/bin/bash
++#!/bin/sh
+ # iptables-apply -- a safer way to update iptables remotely
+ #
+ # Usage:
+@@ -110,7 +110,7 @@
+ }
+
+ function checkcommands() {
+- for cmd in "${COMMANDS[@]}"; do
++ for cmd in ${COMMANDS}; do
+ if ! command -v "$cmd" >/dev/null; then
+ echo "Error: needed command not found: $cmd" >&2
+ exit 127
+@@ -184,7 +184,7 @@
+ fi
+
+ # Needed commands
+- COMMANDS=(mktemp "$SAVE" "$RESTORE" "$RUNCMD")
++ COMMANDS="mktemp $SAVE $RESTORE $RUNCMD"
+ checkcommands
+ ;;
+ (*)
+@@ -196,7 +196,7 @@
+ fi
+
+ # Needed commands
+- COMMANDS=(mktemp "$SAVE" "$RESTORE")
++ COMMANDS="mktemp $SAVE $RESTORE"
+ checkcommands
+ ;;
+ esac