mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-07-18 16:58:27 -04:00
setting MULTI_ARCH to false, sleep indefinitely on error
This commit is contained in:
@@ -5,9 +5,9 @@ on: [push, pull_request_target, workflow_dispatch]
|
|||||||
env:
|
env:
|
||||||
GITHUB_REPO: "linuxserver/docker-mods" #don't modify
|
GITHUB_REPO: "linuxserver/docker-mods" #don't modify
|
||||||
ENDPOINT: "linuxserver/mods" #don't modify
|
ENDPOINT: "linuxserver/mods" #don't modify
|
||||||
BASEIMAGE: "nextcloud" #replace
|
BASEIMAGE: "nextcloud"
|
||||||
MODNAME: "notify-push" #replace
|
MODNAME: "notify-push"
|
||||||
MULTI_ARCH: "true" #set to false if not needed
|
MULTI_ARCH: "false"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
set-vars:
|
set-vars:
|
||||||
|
|||||||
@@ -1,15 +0,0 @@
|
|||||||
#!/usr/bin/with-contenv bash
|
|
||||||
|
|
||||||
NEXTCLOUD_BASE="/config/www/nextcloud"
|
|
||||||
NOTIFY_PUSH_BIN="$NEXTCLOUD_BASE/apps/notify_push/bin/$(arch)/notify_push"
|
|
||||||
|
|
||||||
# Check if notify-push is installed
|
|
||||||
if [ ! -d "$NEXTCLOUD_BASE/apps/notify_push/" ]; then
|
|
||||||
echo "**** Notify-push folder not found. Download and install the notify-push/client-push app and restart the container. ****"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
# Check cpu arch
|
|
||||||
if [ ! -f "$NOTIFY_PUSH_BIN" ]; then
|
|
||||||
echo "**** Did not find a matching notify-push binary for your cpu arch: $(arch) ****"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
oneshot
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/etc/s6-overlay/s6-rc.d/init-mod-nextcloud-notify-push/run
|
|
||||||
@@ -5,6 +5,17 @@ export ALLOW_SELF_SIGNED=true
|
|||||||
NEXTCLOUD_BASE="/config/www/nextcloud"
|
NEXTCLOUD_BASE="/config/www/nextcloud"
|
||||||
NOTIFY_PUSH_BIN="$NEXTCLOUD_BASE/apps/notify_push/bin/$(arch)/notify_push"
|
NOTIFY_PUSH_BIN="$NEXTCLOUD_BASE/apps/notify_push/bin/$(arch)/notify_push"
|
||||||
|
|
||||||
|
# Check if notify-push is installed
|
||||||
|
if [ ! -d "$NEXTCLOUD_BASE/apps/notify_push/" ]; then
|
||||||
|
echo "**** Notify-push folder not found. Install the notify-push/client-push app and restart the container. ****"
|
||||||
|
sleep infinity
|
||||||
|
fi
|
||||||
|
# Check cpu arch
|
||||||
|
if [ ! -f "$NOTIFY_PUSH_BIN" ]; then
|
||||||
|
echo "**** Did not find a matching notify-push binary for your cpu arch: $(arch) ****"
|
||||||
|
sleep infinity
|
||||||
|
fi
|
||||||
|
|
||||||
# run notify-push binary
|
# run notify-push binary
|
||||||
echo "**** Starting notify-push ****"
|
echo "**** Starting notify-push ****"
|
||||||
s6-setuidgid abc "$NOTIFY_PUSH_BIN" "$NEXTCLOUD_BASE/config/config.php"
|
s6-setuidgid abc "$NOTIFY_PUSH_BIN" "$NEXTCLOUD_BASE/config/config.php"
|
||||||
Reference in New Issue
Block a user