From b4c0266461936375530d327e57a04bc586eadd1a Mon Sep 17 00:00:00 2001 From: "Simon L." Date: Thu, 21 May 2026 10:53:49 +0200 Subject: [PATCH] notify-push: fix startup on ipv6 disabled servers Signed-off-by: Simon L. --- Containers/notify-push/start.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Containers/notify-push/start.sh b/Containers/notify-push/start.sh index 44d99605..aa0aae4e 100644 --- a/Containers/notify-push/start.sh +++ b/Containers/notify-push/start.sh @@ -42,6 +42,15 @@ if ! [ -f /var/www/html/custom_apps/notify_push/bin/"$CPU_ARCH"/notify_push ] && exit 1 fi +# Logic for ipv6 disabled servers +BIND="::" +if grep -q "1" /sys/module/ipv6/parameters/disable \ +|| grep -q "1" /proc/sys/net/ipv6/conf/all/disable_ipv6 \ +|| grep -q "1" /proc/sys/net/ipv6/conf/default/disable_ipv6; then + BIND="0.0.0.0" +fi +export BIND + echo "notify-push was started"