Skip to content

Commit 0a022e8

Browse files
authored
Merge pull request #1069 from linuxserver/nextcloud-notify-push-retry
add deps and a retry
2 parents 2de0dc1 + 402b493 commit 0a022e8

File tree

3 files changed

+11
-3
lines changed
  • root/etc/s6-overlay/s6-rc.d

3 files changed

+11
-3
lines changed

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

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,15 @@
22
# shellcheck shell=bash
33

44
NOTIFY_PUSH_URL=$(echo "$(occ config:system:get overwrite.cli.url)/push")
5+
RETRY=0
56
echo "**** Setting notify_push server URL to ${NOTIFY_PUSH_URL} ****"
6-
if ! occ notify_push:setup "${NOTIFY_PUSH_URL}"; then
7-
echo "**** There was an error setting the notify_push server URL. Please double check your reverse proxy settings as well as the overwrite.cli.url entry in Nextcloud's config.php ****"
8-
fi
7+
while ! occ notify_push:setup "${NOTIFY_PUSH_URL}"; do
8+
RETRY=$((${RETRY} + 1))
9+
if [[ "${RETRY}" -lt 6 ]]; then
10+
echo "**** Retrying notify_push setup ****"
11+
sleep 3
12+
else
13+
echo "**** There was an error setting the notify_push server URL. Please double check your reverse proxy settings as well as the overwrite.cli.url entry in Nextcloud's config.php ****"
14+
break
15+
fi
16+
done

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

File renamed without changes.

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

Whitespace-only changes.

0 commit comments

Comments
 (0)