Skip to content

Commit 15815e0

Browse files
committed
add deps and a retry
1 parent 2de0dc1 commit 15815e0

File tree

3 files changed

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

3 files changed

+10
-3
lines changed

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

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,14 @@
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+
sleep 3
11+
else
12+
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 ****"
13+
break
14+
fi
15+
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)