🗃️ Committing everything that changed 🗃️

rootfs/usr/local/etc/docker/init.d/zz-act_runner.sh
This commit is contained in:
casjay 2024-08-13 16:27:17 -04:00
parent ecb84d7bb6
commit bf4673aff7
Signed by untrusted user who does not match committer: jason
GPG Key ID: 1AB309F42A764145

View File

@ -266,7 +266,7 @@ EOF
if [ -z "$RUNNER_AUTH_TOKEN" ]; then if [ -z "$RUNNER_AUTH_TOKEN" ]; then
chmod -Rf 600 "$CONF_DIR/tokens/system" "$CONF_DIR/tokens/$RUNNER_NAME" 2>/dev/null chmod -Rf 600 "$CONF_DIR/tokens/system" "$CONF_DIR/tokens/$RUNNER_NAME" 2>/dev/null
chown -Rf "$SERVICE_USER":"$SERVICE_GROUP" "$CONF_DIR" "$ETC_DIR" "$DATA_DIR" 2>/dev/null chown -Rf "$SERVICE_USER":"$SERVICE_GROUP" "$CONF_DIR" "$ETC_DIR" "$DATA_DIR" 2>/dev/null
echo "Error: RUNNER_AUTH_TOKEN is not set - visit $RUNNER_HOSTNAME/admin/actions/runners" >&2 echo "$(date +'%H:%M') Error: RUNNER_AUTH_TOKEN is not set - visit $RUNNER_HOSTNAME/admin/actions/runners" >&2
echo "Then edit $runner or set in $CONF_DIR/tokens/$RUNNER_NAME" >&2 echo "Then edit $runner or set in $CONF_DIR/tokens/$RUNNER_NAME" >&2
sleep 120 sleep 120
else else
@ -282,10 +282,11 @@ EOF
copy "$runner" "$RUNNER_HOME/$RUNNER_NAME.reg" copy "$runner" "$RUNNER_HOME/$RUNNER_NAME.reg"
chown -Rf "$SERVICE_USER":"$SERVICE_GROUP" "$RUNNER_HOME" chown -Rf "$SERVICE_USER":"$SERVICE_GROUP" "$RUNNER_HOME"
echo "$RUNNER_NAME has been registered" echo "$RUNNER_NAME has been registered"
exitStatus=${exitStatus:-0} exitStatus=0
break break
else else
exitStatus=$((exitStatus++)) exitStatus=$((exitStatus++))
echo "$(date +'%H:%M') Failes to register $RUNNER_NAME - $exitStatus"
sleep 20 sleep 20
fi fi
fi fi