You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
619 B

  1. #!/bin/bash
  2. set -e
  3. DOMAIN=$(relation-get domain) || exit 1
  4. ## These are mainly to setup the correct web-hook
  5. if [ "$MASTER_BASE_SERVICE_NAME" == "$DOMAIN" ]; then
  6. ## This is because the IP will be the docker container version
  7. PROTO="http"
  8. else
  9. URL="$(relation-get url)" || exit 1
  10. PROTO="${URL%%://*}"
  11. fi
  12. read-0 ts _ _ < <(get_service_relation "$SERVICE_NAME" "nextcloud-app") || {
  13. err "Could not find ${DARKCYAN}nextcloud-app${WHITE} service name."
  14. exit 1
  15. }
  16. compose --no-relations --no-init occ "$ts" \
  17. config:system:set onlyoffice DocumentServerUrl --value="$PROTO://$DOMAIN/" \;