Commit Graph

8 Commits

Author SHA1 Message Date
jason f6d312ea9e 🐛 Fix __create_service_env to write .local.sh to disk 🐛
The .local.sh block defined stub functions in memory but never
wrote the file to disk, so __file_exists_with_content always
failed and __create_service_env returned non-zero on every run.
Fix: use a heredoc to write the stub functions into .local.sh.
- rootfs/usr/local/etc/docker/init.d/zz-nextcloud.sh: write .local.sh
via heredoc in __create_service_env; bump version to 202606261600-git

rootfs/usr/local/etc/docker/init.d/zz-nextcloud.sh
2026-06-26 21:06:38 -04:00
jason 68fc326f37 🐛 Remove stale local function definitions from init.d script 🐛
nextcloud / release-nextcloud (push) Failing after 4s
__cd, __pcheck, __pgrep, and __proc_check were locally defined in
init.d scripts before they were added to the shared docker-entrypoint
functions library. These local copies shadow the improved library
versions and prevent library updates from taking effect.
- rootfs/usr/local/etc/docker/init.d/zz-nextcloud.sh: remove stale local __cd/__pcheck/__pgrep/__proc_check definitions; defer to shared library

rootfs/usr/local/etc/docker/init.d/zz-nextcloud.sh
2026-06-26 18:49:10 -04:00
jason b83c104f09 ♻️ Migrate nextcloud to /config/ source-of-truth architecture ♻️
Migrate nextcloud Docker image to the new build-time config architecture.
- rootfs/root/docker/setup/03-files.sh: rewrite to canonical form with /tmp/bin, /tmp/var, /tmp/etc, /tmp/usr handlers; remove template-files copy block
- rootfs/usr/local/etc/docker/functions/entrypoint.sh: update to latest template with __init_service_conf, __find_php_ini, __find_php_bin helpers
- rootfs/usr/local/etc/docker/init.d/*.sh: fix $(basename) UUOC → ${var##*/}; move inline comments above code lines; remove commented-out dead code
- rootfs/usr/local/share/template-files/: delete entire directory; config files now deployed via /tmp/etc/ at build time

rootfs/root/docker/setup/03-files.sh
rootfs/usr/local/etc/docker/functions/entrypoint.sh
rootfs/usr/local/etc/docker/init.d/zz-nextcloud.sh
rootfs/usr/local/share/template-files/config/env/default.sample
rootfs/usr/local/share/template-files/config/env/examples/00-directory.sh
rootfs/usr/local/share/template-files/config/env/examples/addresses.sh
rootfs/usr/local/share/template-files/config/env/examples/certbot.sh
rootfs/usr/local/share/template-files/config/env/examples/couchdb.sh
rootfs/usr/local/share/template-files/config/env/examples/dockerd.sh
rootfs/usr/local/share/template-files/config/env/examples/global.sh
rootfs/usr/local/share/template-files/config/env/examples/healthcheck.sh
rootfs/usr/local/share/template-files/config/env/examples/mariadb.sh
rootfs/usr/local/share/template-files/config/env/examples/mongodb.sh
rootfs/usr/local/share/template-files/config/env/examples/networking.sh
rootfs/usr/local/share/template-files/config/env/examples/other.sh
rootfs/usr/local/share/template-files/config/env/examples/php.sh
rootfs/usr/local/share/template-files/config/env/examples/postgres.sh
rootfs/usr/local/share/template-files/config/env/examples/redis.sh
rootfs/usr/local/share/template-files/config/env/examples/services.sh
rootfs/usr/local/share/template-files/config/env/examples/ssl.sh
rootfs/usr/local/share/template-files/config/env/examples/supabase.sh
rootfs/usr/local/share/template-files/config/env/examples/webservers.sh
rootfs/usr/local/share/template-files/config/env/examples/zz-entrypoint.sh
rootfs/usr/local/share/template-files/config/.gitkeep
rootfs/usr/local/share/template-files/data/.gitkeep
rootfs/usr/local/share/template-files/defaults/.gitkeep
2026-06-04 14:46:36 -04:00
jason 8856e41720 🗃️ Committing everything that changed 🗃️
rootfs/usr/local/etc/docker/functions/entrypoint.sh
rootfs/usr/local/etc/docker/init.d/zz-nextcloud.sh
2025-09-20 06:39:34 -04:00
jason 9222fc2cc2 🗃️ Committing everything that changed 🗃️
Dockerfile
.env.scripts
rootfs/usr/local/etc/docker/init.d/zz-nextcloud.sh
rootfs/usr/local/share/template-files/config/env/default.sample
2025-02-03 15:19:52 -05:00
jason 5b947e2630 🗃️ Committing everything that changed 🗃️
rootfs/usr/local/etc/docker/init.d/zz-nextcloud.sh
2024-07-07 16:01:12 -04:00
jason 52a8e05ea0 🗃️ Committing everything that changed 🗃️
rootfs/usr/local/etc/docker/init.d/zz-nextcloud.sh
2024-07-07 15:50:35 -04:00
jason 233e048552 🗃️ Committing everything that changed 🗃️
bin/entrypoint-nextcloud.sh
bin/.gitkeep
bin/healthcheck
bin/occ
config/cont-init.d/00-fix-logs.sh
config/cont-init.d/01-fix-uidgid.sh
config/cont-init.d/02-fix-perms.sh
config/cont-init.d/03-config.sh
config/cont-init.d/04-svc-main.sh
config/cont-init.d/05-svc-cron.sh
config/cont-init.d/06-svc-previewgen.sh
config/cont-init.d/07-svc-news-updater.sh
config/.gitkeep
config/php/conf.d/smbclient.ini
config/tpls/bootstrap.php
config/tpls/etc/nginx/nginx.conf
config/tpls/etc/php/conf.d/apcu.ini
config/tpls/etc/php/conf.d/opcache.ini
config/tpls/etc/php/conf.d/override.ini
config/tpls/etc/php/php-fpm.d/www.conf
data/.gitkeep
Dockerfile
.env.scripts
.gitattributes
.gitignore
rootfs/.gitkeep
rootfs/usr/local/bin/entrypoint.sh
rootfs/usr/local/bin/.gitkeep
rootfs/usr/local/bin/next-cloud
rootfs/usr/local/bin/occ
rootfs/usr/local/bin/pkmgr
rootfs/usr/local/bin/start-nextcloud.sh
rootfs/usr/local/etc/
rootfs/usr/local/share/template-files/config/env/
2024-07-07 15:33:36 -04:00