mirror of
https://github.com/casjaysdevdocker/gitea
synced 2026-06-24 02:01:03 -04:00
42d0439d94
Replace the fragile grep-for-REPLACE_ re-seed check with a .initialized marker written after __update_conf_files completes. The seed (cp from /etc/ → /config/) only runs when the marker is absent, so secrets and tokens are generated exactly once and never overwritten on container restart. To force a full re-initialisation: delete /config/$svc/.initialized - rootfs/usr/local/etc/docker/init.d/08-gitea.sh: seed on missing marker; write marker at end of __update_conf_files - rootfs/usr/local/etc/docker/init.d/05-dockerd.sh: same - rootfs/usr/local/etc/docker/init.d/zz-act_runner.sh: same rootfs/usr/local/etc/docker/init.d/05-dockerd.sh rootfs/usr/local/etc/docker/init.d/08-gitea.sh rootfs/usr/local/etc/docker/init.d/zz-act_runner.sh