Files
rustguac/tests
Dave Kempe bdcf58dd1c docker: let rustguac decide first run, so db_path can move (#240)
The entrypoint created the docker-admin key whenever no file existed at
/opt/rustguac/data/rustguac.db. With db_path set anywhere else, for
example on a Kubernetes persistent volume, that file never exists, so
every container start tried to create the admin again and failed with
"UNIQUE constraint failed: admins.name".

add-admin gains --if-none: create the admin only when no admin account
exists, otherwise say so and exit successfully. rustguac opens the
database db_path names, so the entrypoint no longer needs to know where
it is. Any existing admin counts, so a docker-admin an operator removed
after creating their own does not come back. The save-the-key banner is
printed only when a key was actually created.

Reported by @hit-rich.
2026-10-06 10:41:39 +11:00
..
2026-02-06 14:38:53 +11:00