🗃️ Committing everything that changed 🗃️

rootfs/usr/local/etc/docker/init.d/zz-act_runner.sh
This commit is contained in:
casjay 2024-08-11 16:51:57 -04:00
parent 54f23f7449
commit bad98e7c1e
Signed by untrusted user who does not match committer: jason
GPG Key ID: 1AB309F42A764145

View File

@ -248,7 +248,9 @@ EOF
fi fi
for runner in "$CONF_DIR/reg"/*.reg; do for runner in "$CONF_DIR/reg"/*.reg; do
exitStatus=0 exitStatus=0
unset RUNNER_HOME RUNNER_NAME
RUNNER_NAME="$(basename "${runner//.reg/}")" RUNNER_NAME="$(basename "${runner//.reg/}")"
RUNNER_HOME="${RUNNER_HOME:-$CONF_DIR/multi/$RUNNER_NAME}"
while :; do while :; do
[ -f "$runner" ] && . "$runner" [ -f "$runner" ] && . "$runner"
[ -f "$RUN_DIR/act_runner.$RUNNER_NAME.pid" ] && break [ -f "$RUN_DIR/act_runner.$RUNNER_NAME.pid" ] && break
@ -266,7 +268,6 @@ EOF
continue continue
else else
[ -f "$runner" ] && . "$runner" [ -f "$runner" ] && . "$runner"
RUNNER_HOME="${RUNNER_HOME:-$CONF_DIR/multi/$RUNNER_NAME}"
mkdir -p "$RUNNER_HOME" mkdir -p "$RUNNER_HOME"
cp -Rf "$CONF_DIR/multi.yaml" "$RUNNER_HOME/daemon.yaml" cp -Rf "$CONF_DIR/multi.yaml" "$RUNNER_HOME/daemon.yaml"
__replace "REPLACE_RUNNER_TEMP" "$TMP_DIR/$RUNNER_NAME" "$RUNNER_HOME/$RUNNER_NAME.yaml" __replace "REPLACE_RUNNER_TEMP" "$TMP_DIR/$RUNNER_NAME" "$RUNNER_HOME/$RUNNER_NAME.yaml"