Skip to content

Commit 1d45ba8

Browse files
committed
setting MULTI_ARCH to false, sleep indefinitely on error
1 parent 359fff9 commit 1d45ba8

File tree

8 files changed

+14
-20
lines changed

8 files changed

+14
-20
lines changed

.github/workflows/BuildImage.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ on: [push, pull_request_target, workflow_dispatch]
55
env:
66
GITHUB_REPO: "linuxserver/docker-mods" #don't modify
77
ENDPOINT: "linuxserver/mods" #don't modify
8-
BASEIMAGE: "nextcloud" #replace
9-
MODNAME: "notify-push" #replace
10-
MULTI_ARCH: "true" #set to false if not needed
8+
BASEIMAGE: "nextcloud"
9+
MODNAME: "notify-push"
10+
MULTI_ARCH: "false"
1111

1212
jobs:
1313
set-vars:

root/etc/s6-overlay/s6-rc.d/init-mod-nextcloud-notify-push/run

Lines changed: 0 additions & 15 deletions
This file was deleted.

root/etc/s6-overlay/s6-rc.d/init-mod-nextcloud-notify-push/type

Lines changed: 0 additions & 1 deletion
This file was deleted.

root/etc/s6-overlay/s6-rc.d/init-mod-nextcloud-notify-push/up

Lines changed: 0 additions & 1 deletion
This file was deleted.

root/etc/s6-overlay/s6-rc.d/svc-mod-nextcloud-notify-push/dependencies.d/init-mod-nextcloud-notify-push

Whitespace-only changes.

root/etc/s6-overlay/s6-rc.d/init-mod-nextcloud-notify-push/dependencies.d/init-services renamed to root/etc/s6-overlay/s6-rc.d/svc-mod-nextcloud-notify-push/dependencies.d/init-services

File renamed without changes.

root/etc/s6-overlay/s6-rc.d/svc-mod-nextcloud-notify-push/run

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,17 @@ export ALLOW_SELF_SIGNED=true
55
NEXTCLOUD_BASE="/config/www/nextcloud"
66
NOTIFY_PUSH_BIN="$NEXTCLOUD_BASE/apps/notify_push/bin/$(arch)/notify_push"
77

8+
# Check if notify-push is installed
9+
if [ ! -d "$NEXTCLOUD_BASE/apps/notify_push/" ]; then
10+
echo "**** Notify-push folder not found. Install the notify-push/client-push app and restart the container. ****"
11+
sleep infinity
12+
fi
13+
# Check cpu arch
14+
if [ ! -f "$NOTIFY_PUSH_BIN" ]; then
15+
echo "**** Did not find a matching notify-push binary for your cpu arch: $(arch) ****"
16+
sleep infinity
17+
fi
18+
819
# run notify-push binary
920
echo "**** Starting notify-push ****"
1021
s6-setuidgid abc "$NOTIFY_PUSH_BIN" "$NEXTCLOUD_BASE/config/config.php"

root/etc/s6-overlay/s6-rc.d/user/contents.d/init-mod-nextcloud-notify-push

Whitespace-only changes.

0 commit comments

Comments
 (0)