# Made by coreapps from the app's coreapp.toml. Sourced by the Core's # installapp. . /federated/lib/helpers.sh # Besides /etc/federated's and service's values, the templates use # @TRAEFIK_IP@, traefik's address on the core network TRAEFIK_IP="$(sed -n 's/^INTERNAL_IP=//p' /federated/services/traefik/service)" installGeneric {{NAME}} # .env holds secrets chmod 600 /federated/apps/{{NAME}}/.env # What the app needs from the Core (its database, its sign-in client) for setup in /federated/services/{{NAME}}/needs/*/setup; do [ -e "$setup" ] && . "$setup" done unset setup