auto install plugin, add various checks

This commit is contained in:
aptalca
2024-03-26 11:08:27 -04:00
parent aba84fe07c
commit a6c70d706e
8 changed files with 40 additions and 13 deletions
@@ -0,0 +1,8 @@
#!/usr/bin/with-contenv bash
# shellcheck shell=bash
NOTIFY_PUSH_URL=$(echo "$(occ config:system:get overwrite.cli.url)/push")
echo "**** Setting notify_push server URL to ${NOTIFY_PUSH_URL} ****"
if ! occ notify_push:setup "${NOTIFY_PUSH_URL}"; then
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 ****"
fi
@@ -0,0 +1 @@
oneshot
@@ -0,0 +1 @@
/etc/s6-overlay/s6-rc.d/svc-mod-nextcloud-notify-push-set-url/run