Restart Compose stack after permission changes in run.sh #22
Loading…
Reference in a new issue
No description provided.
Delete branch "fix-run-sh-force-container-restart"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What changed
run.sh: when a run changes ownership of*_DIRECTORIES(initial run or--force) and the published stack has running services, the stack is stopped first. After publication it is started again withdocker compose up -d.app.envor.envwhose value is empty or containsCHANGE_ME, the stack stays stopped. The run then lists those keys and the start command at the end.--skip-permissionsand--dry-rundo not stop the stack.snapshot_published_env_keys,collect_unconfigured_env_additions,report_unconfigured_env_additions, andstart_compose_stopped_for_permissions..openso/rules/20-scripts.md) and the README--forcerow describe the new behaviour.Why
Recursive
chown/chmodon bind-mounted directories while containers run can break services. Previously the stack was left down after--force, so operators had to restart it by hand. Now the stack returns automatically, except when new configuration is still missing, where stopping it avoids starting services with placeholder values.