fix: ensure that config is squashed from repository on start

This commit is contained in:
Marc 2024-07-29 20:23:56 -04:00
parent 7d8c24d18e
commit 7f5183ca26
Signed by: marc
GPG key ID: 048E042F22B5DC79

View file

@ -13,6 +13,7 @@ rm forgejo-runner.asc
if [ -f "$FORGEJO_RUNNER_ROOT/.runner" ]; then if [ -f "$FORGEJO_RUNNER_ROOT/.runner" ]; then
echo "Found runner state." echo "Found runner state."
( (
cp ./config.yml "$FORGEJO_RUNNER_ROOT/config.yml"
cd "$FORGEJO_RUNNER_ROOT" || exit cd "$FORGEJO_RUNNER_ROOT" || exit
"$FORGEJO_RUNNER_ROOT"/forgejo-runner --config "${FORGEJO_RUNNER_CONFIG:=./config.yml}" daemon & "$FORGEJO_RUNNER_ROOT"/forgejo-runner --config "${FORGEJO_RUNNER_CONFIG:=./config.yml}" daemon &
) )