mirror of
https://github.com/casjaysdevdocker/gitea
synced 2025-01-30 06:34:25 -05:00
🗃️ Committing everything that changed 🗃️
rootfs/usr/local/etc/docker/init.d/zz-act_runner.sh
This commit is contained in:
parent
ecb84d7bb6
commit
bf4673aff7
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user