filter enviornment variables when launching the runner

This commit is contained in:
Earl Warren 2023-04-30 22:41:40 +02:00
parent ae7f03683b
commit acff2f0697
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00

View file

@ -27,7 +27,7 @@ function register() {
function run() {
rm -f forgejo-runner.log
daemon --chdir=$(pwd) --unsafe --pidfile=$(pwd)/forgejo-runner-pid --errlog=$(pwd)/forgejo-runner.log --output=$(pwd)/forgejo-runner.log forgejo-runner daemon
daemon --chdir=$(pwd) --unsafe --env="TERM=$TERM" --env="HOME=$HOME" --env="PATH=$PATH" --env="USER=$USER" --env="TERM=dumb" --env="USERNAME=$USERNAME" --env="LANG=$LANG" --pidfile=$(pwd)/forgejo-runner-pid --errlog=$(pwd)/forgejo-runner.log --output=$(pwd)/forgejo-runner.log forgejo-runner daemon
sleep 1
cat forgejo-runner.log
}