mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-06 02:54:26 +00:00
The infinito config loader was appended to the occ-managed config.php with a shell printf while the image entrypoint was still in its post-install write phase; the entrypoint read config.php before the append and wrote it back after, clobbering the loader, so /var/www/infinito extras (oidc_login_provider_url among them) never reached Nextcloud and /apps/oidc_login/oidc answered 500 in the compose e2e job. Install the loader as config/zzz-infinito.config.php after occ reports installed instead: Nextcloud merges config/*.config.php on every read, occ never rewrites those files, and the entrypoint rsync excludes /config/, so no clobber path remains. A file mount was rejected because a non-empty config/ suppresses the entrypoint's base-config copy on first install. The loader now declares $CONFIG directly (additional config files load after unset($CONFIG)), cron gets the /var/www/infinito bind it silently lacked, and the dead include-path vars and host render go away. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
11 lines
233 B
Django/Jinja
11 lines
233 B
Django/Jinja
<?php
|
|
{% raw %}
|
|
$CONFIG_EXTRA = [];
|
|
|
|
foreach (glob("{% endraw %}{{ NEXTCLOUD_DOCKER_CONF_ADD_PATH }}{% raw %}*.php") as $file) {
|
|
$CONFIG_EXTRA = array_merge($CONFIG_EXTRA, include $file);
|
|
}
|
|
|
|
$CONFIG = $CONFIG_EXTRA;
|
|
{% endraw %}
|