Add entrypoint fallback for missing bind-mounted scripts #2
Reference in New Issue
Block a user
No description provided.
Delete Branch "scripts/entrypoint"
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?
Adds a fallback entrypoint so backup containers stay usable even when the
bind-mounted scripts directory is missing.
falling back to a copy baked into the image at build time if the mount is
missing. If neither exists, it stays up and idle instead of crash-looping,
so the container stays reachable via console/exec for diagnosis.
live-or-fallback way, re-checked every loop iteration, so a bind mount
that comes back healthy is picked up on the next backup run with no
restart needed.
image under /app/scripts-default/ as the fallback, sets the new wrapper
as ENTRYPOINT.
files before startup.