From 490a1811c88b0a71cf79bfd60056eeda7e942f83 Mon Sep 17 00:00:00 2001 From: "Simon L." Date: Mon, 4 May 2026 13:02:09 +0200 Subject: [PATCH 1/2] notify-push: allow to put the binary into the nextcloud apps dir directly Signed-off-by: Simon L. --- Containers/notify-push/start.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Containers/notify-push/start.sh b/Containers/notify-push/start.sh index 335a299d..ada8ed79 100644 --- a/Containers/notify-push/start.sh +++ b/Containers/notify-push/start.sh @@ -28,7 +28,7 @@ elif [ "$CPU_ARCH" != "x86_64" ]; then fi # Add warning -if ! [ -f /var/www/html/custom_apps/notify_push/bin/"$CPU_ARCH"/notify_push ]; then +if ! [ -f /var/www/html/custom_apps/notify_push/bin/"$CPU_ARCH"/notify_push ] && ! ! [ -f /var/www/html/apps/notify_push/bin/"$CPU_ARCH"/notify_push ]; then echo "The notify_push binary was not found." echo "Most likely is DNS resolution not working correctly." echo "You can try to fix this by configuring a DNS server globally in dockers daemon.json." @@ -44,7 +44,13 @@ fi echo "notify-push was started" + +if [ -f /var/www/html/custom_apps/notify_push/bin/"$CPU_ARCH"/notify_push ]; then + PUSH_PATH="/var/www/html/custom_apps/notify_push/bin/$CPU_ARCH/notify_push" +else + PUSH_PATH="/var/www/html/apps/notify_push/bin/$CPU_ARCH/notify_push" +fi # Run it -exec /var/www/html/custom_apps/notify_push/bin/"$CPU_ARCH"/notify_push \ +exec "$PUSH_PATH" \ --port 7867 \ /var/www/html/config/config.php From 3b3c8ba25c753ed2e7de40bd4f64a5a3013a8771 Mon Sep 17 00:00:00 2001 From: "Simon L." Date: Mon, 4 May 2026 15:10:51 +0200 Subject: [PATCH 2/2] Apply suggestion from @szaimen Signed-off-by: Simon L. --- Containers/notify-push/start.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Containers/notify-push/start.sh b/Containers/notify-push/start.sh index ada8ed79..44d99605 100644 --- a/Containers/notify-push/start.sh +++ b/Containers/notify-push/start.sh @@ -28,7 +28,7 @@ elif [ "$CPU_ARCH" != "x86_64" ]; then fi # Add warning -if ! [ -f /var/www/html/custom_apps/notify_push/bin/"$CPU_ARCH"/notify_push ] && ! ! [ -f /var/www/html/apps/notify_push/bin/"$CPU_ARCH"/notify_push ]; then +if ! [ -f /var/www/html/custom_apps/notify_push/bin/"$CPU_ARCH"/notify_push ] && ! [ -f /var/www/html/apps/notify_push/bin/"$CPU_ARCH"/notify_push ]; then echo "The notify_push binary was not found." echo "Most likely is DNS resolution not working correctly." echo "You can try to fix this by configuring a DNS server globally in dockers daemon.json."