mirror of
https://github.com/casjaysdevdocker/forgejo
synced 2026-10-15 14:12:55 -04:00
fix: harden Forgejo runner lifecycle
- README.md: document full runner configuration, isolated state, and cleanup settings - IDEA.md: N/A - no user-facing product behavior change - TODO.AI.md: record runner cleanup and runtime verification status - rootfs/usr/local/bin/cleanup-runners: add safe stale Docker and act-cache cleanup - rootfs/usr/local/bin/start-runners: propagate per-runner config and report daemon failures - rootfs/usr/local/etc/docker/init.d/05-dockerd.sh: seed Docker config without overwriting user files - rootfs/usr/local/etc/docker/init.d/08-forgejo.sh: seed Forgejo config without overwriting user files - rootfs/usr/local/etc/docker/init.d/zz-act_runner.sh: seed runner config safely and schedule validated cleanup
This commit is contained in:
7 files changed
+227
-23
No files matched your search
@@ -323,7 +323,7 @@ __run_precopy() {
|
||||
if [ -d "$ETC_DIR" ] && ! [ -L "$ETC_DIR" ]; then
|
||||
if [ ! -f "$CONF_DIR/.initialized" ]; then
|
||||
mkdir -p "$CONF_DIR"
|
||||
cp -Rf "$ETC_DIR/." "$CONF_DIR/" 2>/dev/null || true
|
||||
cp -Rn "$ETC_DIR/." "$CONF_DIR/" 2>/dev/null || true
|
||||
fi
|
||||
rm -Rf "$ETC_DIR"
|
||||
ln -sf "$CONF_DIR" "$ETC_DIR"
|
||||
|
||||
Reference in new issue
Block a user