1
0
Fork 0
mirror of https://code.forgejo.org/forgejo/runner.git synced 2025-06-27 16:35:58 +00:00

fix: forgejo-runner-service.sh misses LXC config

When re-creating the LXC container, the INPUTS_LXC_CONFIG must be
set otherwise it will always use the default.
This commit is contained in:
Earl Warren 2025-01-27 09:59:38 +01:00
parent 5f92ffdbc6
commit 253eb51687
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00

View file

@ -159,13 +159,14 @@ function inside() {
local name=$(lxc_name)
lxc-helpers.sh lxc_container_run $name -- sudo --user $LXC_USER_NAME \
INPUTS_SERIAL=$INPUTS_SERIAL \
INPUTS_TOKEN=$INPUTS_TOKEN \
INPUTS_FORGEJO=$INPUTS_FORGEJO \
INPUTS_LIFETIME=$INPUTS_LIFETIME \
KILL_AFTER=$KILL_AFTER \
VERBOSE=$VERBOSE \
HOST=$HOST \
INPUTS_SERIAL="$INPUTS_SERIAL" \
INPUTS_LXC_CONFIG="$INPUTS_LXC_CONFIG" \
INPUTS_TOKEN="$INPUTS_TOKEN" \
INPUTS_FORGEJO="$INPUTS_FORGEJO" \
INPUTS_LIFETIME="$INPUTS_LIFETIME" \
KILL_AFTER="$KILL_AFTER" \
VERBOSE="$VERBOSE" \
HOST="$HOST" \
$SELF_FILENAME "$@"
}