From 63ee69f432f3a929f35ea7ed5ea2f110c9e40b0b Mon Sep 17 00:00:00 2001 From: xrh0905 <1014930533@qq.com> Date: Thu, 15 Jun 2023 11:17:02 +0800 Subject: [PATCH] Fix device or resource busy when patching IPv6 settings --- docker/rootfs/etc/s6-overlay/s6-rc.d/prepare/50-ipv6.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/rootfs/etc/s6-overlay/s6-rc.d/prepare/50-ipv6.sh b/docker/rootfs/etc/s6-overlay/s6-rc.d/prepare/50-ipv6.sh index 76e9a651..0c4d261c 100755 --- a/docker/rootfs/etc/s6-overlay/s6-rc.d/prepare/50-ipv6.sh +++ b/docker/rootfs/etc/s6-overlay/s6-rc.d/prepare/50-ipv6.sh @@ -28,7 +28,7 @@ process_folder () { for FILE in $FILES do echo "- ${FILE}" - sed -E -i "$SED_REGEX" "$FILE" + echo "$(sed -E "$SED_REGEX" "$FILE")" > $FILE done # ensure the files are still owned by the npm user