From bad98e7c1e0a443c4e6956e80e61873708331608 Mon Sep 17 00:00:00 2001 From: casjay Date: Sun, 11 Aug 2024 16:51:57 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=83=EF=B8=8F=20Committing=20everything?= =?UTF-8?q?=20that=20changed=20=F0=9F=97=83=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit rootfs/usr/local/etc/docker/init.d/zz-act_runner.sh --- rootfs/usr/local/etc/docker/init.d/zz-act_runner.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rootfs/usr/local/etc/docker/init.d/zz-act_runner.sh b/rootfs/usr/local/etc/docker/init.d/zz-act_runner.sh index 4a37fa1..ed2f8ad 100755 --- a/rootfs/usr/local/etc/docker/init.d/zz-act_runner.sh +++ b/rootfs/usr/local/etc/docker/init.d/zz-act_runner.sh @@ -248,7 +248,9 @@ EOF fi for runner in "$CONF_DIR/reg"/*.reg; do exitStatus=0 + unset RUNNER_HOME RUNNER_NAME RUNNER_NAME="$(basename "${runner//.reg/}")" + RUNNER_HOME="${RUNNER_HOME:-$CONF_DIR/multi/$RUNNER_NAME}" while :; do [ -f "$runner" ] && . "$runner" [ -f "$RUN_DIR/act_runner.$RUNNER_NAME.pid" ] && break @@ -266,7 +268,6 @@ EOF continue else [ -f "$runner" ] && . "$runner" - RUNNER_HOME="${RUNNER_HOME:-$CONF_DIR/multi/$RUNNER_NAME}" mkdir -p "$RUNNER_HOME" cp -Rf "$CONF_DIR/multi.yaml" "$RUNNER_HOME/daemon.yaml" __replace "REPLACE_RUNNER_TEMP" "$TMP_DIR/$RUNNER_NAME" "$RUNNER_HOME/$RUNNER_NAME.yaml"