From 253eb516875a34c14e2ca9f99614f8b9d1cfcc1a Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Mon, 27 Jan 2025 09:59:38 +0100 Subject: [PATCH] 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. --- examples/lxc-systemd/forgejo-runner-service.sh | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/examples/lxc-systemd/forgejo-runner-service.sh b/examples/lxc-systemd/forgejo-runner-service.sh index fa76c7af..224ffbd7 100755 --- a/examples/lxc-systemd/forgejo-runner-service.sh +++ b/examples/lxc-systemd/forgejo-runner-service.sh @@ -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 "$@" }