Commit Graph
29 Commits
Author SHA1 Message Date
jason b07c6ffc08 🐛 Fix entrypoint hang and lost-interpreter bugs 🐛
aria2 / release-aria2 (push) Failing after 1m48s
- rootfs/usr/local/bin/entrypoint.sh:
  1. The "start all services" gate
     (`if [ "$START_SERVICES" = "yes" ] || [ -z "$1" ]`) always evaluated
     true on a first-run container regardless of $1, because
     START_SERVICES is force-set to "yes" whenever no PID file exists yet.
     Any command passed to `docker run` — `exec ...`, `sh -c ...`,
     `shell`, or an arbitrary program — was swallowed into the
     service-start+monitor branch before reaching the `case "$1"`
     statement that already handles those subcommands, hanging the
     container as a daemon instead of running the given command. Changed
     the condition to `if [ -z "$1" ]` so the daemon branch only fires
     when no command was given at all.
  2. The `*/bin/sh | */bin/bash | bash | sh | shell)` case branch
     unconditionally shifted $1 before `__exec_command "$@"` (a bare
     `exec "$@"`). For `docker run image sh -c 'cmd'` this turned the
     exec into `exec -c cmd` (command not found, exit 127) instead of
     `exec sh -c 'cmd'`. Split the branch: real interpreter names
     (*/bin/sh, */bin/bash, bash, sh) now pass through unshifted; the
     "shell" keyword (not a real interpreter) gets its own branch that
     shifts and prepends "sh" to any remaining args, or falls back to a
     bare `__exec_command` (exec bash -l) when none remain.
  Verified `bash -n` passes. Found and fixed upstream in
  dockersrc/go, confirmed identical in this repo's generated
  entrypoint.sh, and mechanically applied here with the same patch.
2026-07-27 23:17:09 -04:00
jason 5894acaf87 🐛 Fix duplicate 2>/dev/null in entrypoint.sh /etc/hosts line 🐛
aria2 / release-aria2 (push) Failing after 1m38s
The grep -vF line that appends /usr/local/etc/hosts entries had a
duplicate 2>/dev/null redirect after the append operator, which is
a no-op but clutters the script. Synced from template.
- rootfs/usr/local/bin/entrypoint.sh: remove duplicate 2>/dev/null
from grep -vF /etc/hosts append line; bump version to 202606261500-git

rootfs/usr/local/bin/entrypoint.sh
2026-06-26 18:37:14 -04:00
jason d89274dd1b 🐛 Update entrypoint.sh and functions library from current template 🐛
Stale copies called __initialize_default_templates, __initialize_config_dir,
and __initialize_data_dir which are not in the old functions library,
causing container startup failures. Replaced with current template
versions (202606041210-git) which no longer call those missing functions.
- rootfs/usr/local/bin/entrypoint.sh: update to current template
- rootfs/usr/local/etc/docker/functions/entrypoint.sh: update to current template

rootfs/usr/local/bin/entrypoint.sh
rootfs/usr/local/etc/docker/functions/entrypoint.sh
2026-06-05 18:24:20 -04:00
jason 4b80ec9839 🔧 Update configuration files 🔧
AI.md
CLAUDE.md
Dockerfile
.env.scripts
IDEA.md
README.md
rootfs/root/docker/setup/00-init.sh
rootfs/root/docker/setup/01-system.sh
rootfs/root/docker/setup/02-packages.sh
rootfs/root/docker/setup/03-files.sh
rootfs/root/docker/setup/04-users.sh
rootfs/root/docker/setup/06-post.sh
rootfs/root/docker/setup/07-cleanup.sh
rootfs/usr/local/bin/entrypoint.sh
rootfs/usr/local/etc/docker/functions/entrypoint.sh
rootfs/usr/local/etc/docker/init.d/00-aria2c.sh
TODO.AI.md
2026-05-18 15:38:20 -04:00
jason 6b94fff43d 🗃️ Removed the .claude/settings.local.json 🗃️
CLAUDE.md
Dockerfile
.env.scripts
.gitattributes
.gitea/workflows/docker.yaml
.gitignore
LICENSE.md
PLAN.md
README.md
rootfs/root/docker/setup/05-custom.sh
rootfs/tmp/etc/nginx/nginx.conf
rootfs/usr/local/bin/entrypoint.sh
rootfs/usr/local/bin/pkmgr
rootfs/usr/local/etc/docker/bin/
rootfs/usr/local/etc/docker/init.d/00-aria2c.sh
rootfs/usr/local/etc/docker/init.d/zz-nginx.sh
2026-05-12 20:05:30 -04:00
jason 0486a0d49d 🗃️ rootfs: shield internal entrypoint PID files from /run/*.pid sweeps 🗃️
Update the embedded entrypoint copies in rootfs/ to match the
upstream template change. Internal state files renamed to dotfiles
so they're not matched by `/run/*.pid` cleanup globs:
- /run/init.d/entrypoint.pid -> /run/.entrypoint.pid
- /run/no_exit.pid -> /run/.no_exit.pid
- /run/backup.pid -> /run/.backup.pid
- /run/__start_init_scripts.pid -> /run/.start_init_scripts.pid
Per-service PIDs in /run/init.d/ are unchanged.

rootfs/usr/local/bin/entrypoint.sh
rootfs/usr/local/etc/docker/functions/entrypoint.sh
rootfs/usr/local/etc/docker/init.d/00-aria2c.sh
rootfs/usr/local/etc/docker/init.d/zz-nginx.sh
rootfs/usr/local/share/template-files/config/env/default.sample
rootfs/usr/local/share/template-files/config/env/examples/zz-entrypoint.sh
2026-05-05 19:11:07 -04:00
jason 5ab2395dde 🗃️ Update codebase 🗃️
rootfs/usr/local/bin/entrypoint.sh
rootfs/usr/local/etc/docker/functions/entrypoint.sh
2025-11-30 16:25:13 -05:00
jason 515c859237 🗃️ Fixed the entrypoint scripts 🗃️
rootfs/usr/local/bin/entrypoint.sh
rootfs/usr/local/etc/docker/functions/entrypoint.sh
rootfs/usr/local/share/template-files/config/env/default.sample
2025-11-29 12:36:28 -05:00
jason 74e7fecc50 🗃️ Updated Dockerfile* and .env.scripts* 🗃️
Dockerfile
rootfs/usr/local/bin/entrypoint.sh
rootfs/usr/local/etc/docker/functions/entrypoint.sh
2025-11-29 11:03:59 -05:00
jason 88d281da76 🗃️ Committing everything that changed 🗃️
Dockerfile
.env.scripts
.gitattributes
.gitignore
rootfs/.gitea/
rootfs/usr/local/bin/entrypoint.sh
rootfs/usr/local/etc/docker/functions/entrypoint.sh
2025-09-16 19:36:44 -04:00
jason d692502f33 🗃️ Committing everything that changed 🗃️
Jenkinsfile
rootfs/usr/local/bin/entrypoint.sh
rootfs/usr/local/etc/docker/functions/entrypoint.sh
2025-09-05 13:35:01 -04:00
jason 994211c426 🗃️ Committing everything that changed 🗃️
Dockerfile
rootfs/usr/local/bin/entrypoint.sh
2025-05-13 18:25:48 -04:00
jason 9335999df1 🗃️ Committing everything that changed 🗃️
rootfs/usr/local/bin/entrypoint.sh
2025-05-13 18:09:41 -04:00
jason 1fec9d4373 🗃️ Committing everything that changed 🗃️
Dockerfile
.env.scripts
rootfs/usr/local/bin/entrypoint.sh
2025-05-13 16:45:28 -04:00
jason 6a157bb7f9 🗃️ Committing everything that changed 🗃️
Dockerfile
.env.scripts
.gitattributes
.gitea/workflows/docker.yaml
.gitignore
LICENSE.md
README.md
rootfs/root/docker/setup/00-init.sh
rootfs/root/docker/setup/01-system.sh
rootfs/root/docker/setup/02-packages.sh
rootfs/root/docker/setup/03-files.sh
rootfs/root/docker/setup/04-users.sh
rootfs/root/docker/setup/05-custom.sh
rootfs/root/docker/setup/06-post.sh
rootfs/root/docker/setup/07-cleanup.sh
rootfs/tmp/
rootfs/usr/local/bin/entrypoint.sh
rootfs/usr/local/bin/pkmgr
rootfs/usr/local/etc/docker/env/00-directory.sh
rootfs/usr/local/etc/docker/env/addresses.sh
rootfs/usr/local/etc/docker/env/certbot.sh
rootfs/usr/local/etc/docker/env/couchdb.sh
rootfs/usr/local/etc/docker/env/default.sample
rootfs/usr/local/etc/docker/env/global.sh
rootfs/usr/local/etc/docker/env/healthcheck.sh
rootfs/usr/local/etc/docker/env/mariadb.sh
rootfs/usr/local/etc/docker/env/mongodb.sh
rootfs/usr/local/etc/docker/env/networking.sh
rootfs/usr/local/etc/docker/env/other.sh
rootfs/usr/local/etc/docker/env/php.sh
rootfs/usr/local/etc/docker/env/postgres.sh
rootfs/usr/local/etc/docker/env/redis.sh
rootfs/usr/local/etc/docker/env/services.sh
rootfs/usr/local/etc/docker/env/ssl.sh
rootfs/usr/local/etc/docker/env/supabase.sh
rootfs/usr/local/etc/docker/env/webservers.sh
rootfs/usr/local/etc/docker/env/zz-entrypoint.sh
rootfs/usr/local/etc/docker/functions/
rootfs/usr/local/etc/docker/init.d/00-aria2c.sh
rootfs/usr/local/etc/docker/init.d/zz-nginx.sh
rootfs/usr/local/share/template-files/config/aria2/aria2.conf
rootfs/usr/local/share/template-files/config/aria2/aria2.session
rootfs/usr/local/share/template-files/config/aria2/aria-ng.config.js
rootfs/usr/local/share/template-files/config/aria2/scripts/post-hook.sh
rootfs/usr/local/share/template-files/config/env/default.sample
rootfs/usr/local/share/template-files/config/env/examples/
rootfs/usr/local/share/template-files/config/.gitkeep
rootfs/usr/local/share/template-files/config/nginx/mime.types
rootfs/usr/local/share/template-files/config/nginx/nginx.conf
2025-05-13 16:22:29 -04:00
jason a0a0531e1d 🗃️ Committing everything that changed 🗃️
rootfs/usr/local/bin/entrypoint.sh
rootfs/usr/local/etc/docker/functions/entrypoint.sh
2024-08-01 14:46:20 -04:00
jason e3934c1dc7 🗃️ Fixed: rootfs/usr/local/etc/docker/functions/entrypoint.sh 🗃️
Dockerfile
.gitea/
rootfs/usr/local/bin/entrypoint.sh
rootfs/usr/local/etc/docker/functions/entrypoint.sh
2024-07-29 17:53:27 -04:00
casjay 1348335ea6 🗃️ Updated domain names 🗃️
Dockerfile
LICENSE.md
rootfs/usr/local/bin/entrypoint.sh
rootfs/usr/local/share/template-files/config/aria2/scripts/post-hook.sh
2023-08-10 19:54:00 -04:00
casjay 3563933e2e 🗃️ Committing everything that changed 🗃️ 2023-03-16 01:04:40 -04:00
casjay f1472e73a9 🗃️ Committing everything that changed 🗃️ 2023-03-15 22:58:30 -04:00
casjay 81de015f7d 🗃️ Committing everything that changed 🗃️ 2023-03-14 19:23:50 -04:00
casjay 16760ba893 🗃️ Committing everything that changed 🗃️ 2023-03-14 17:00:27 -04:00
casjay bafade73fa 🗃️ Committing everything that changed 🗃️ 2023-03-14 16:16:56 -04:00
casjay 67ecbede6b 🗃️ Committing everything that changed 🗃️ 2023-03-09 23:11:56 -05:00
casjay a40b952f04 🗃️ Committing everything that changed 🗃️ 2023-03-09 22:55:40 -05:00
casjay d0397e44c4 🗃️ Committing everything that changed 🗃️ 2023-02-24 04:09:18 -05:00
casjay 3d580dbc34 🗃️ Committing everything that changed 🗃️ 2022-10-19 20:09:18 -04:00
casjay 97a64c01f8 🗃️ Committing everything that changed 🗃️ 2022-10-19 18:03:44 -04:00
casjay 0424231d4c 🗃️ Committing everything that changed 🗃️ 2022-10-19 17:47:59 -04:00