Files
coreapp-dev/core/templates/install
T
davidandClaude Opus 5.5 89585e81aa Apps get 192.168.5.0/24; keep a copy of each Authelia client
Addresses now come from 192.168.5.0/24, the range Federated's Core
developer set aside for custom apps. Apps installed in 192.168.200.x get
a new address on their next update.

Like Federated's apps, the sso need keeps a copy of its Authelia client in
/federated/apps/<name>/.<name>.oidc-client.yml, so Authelia's start
(reconcile_authelia_sso) restores it if Authelia is reinstalled. Removing
an app deletes the copy before restarting Authelia, which would otherwise
add the client back. Needs can have an update step, run on every update;
sso's writes the copy for apps installed before this.

Fixed: an update of an app with no needs failed at its end (a test that
found nothing to run set the exit status), leaving the app on its old
address.

PLAN.md: the Core developer's guidance and where coreapp-dev stands on
each point.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 14:10:43 -07:00

15 lines
587 B
Plaintext

# 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
if [ -e "$setup" ]; then . "$setup"; fi
done
unset setup