make forgejo-runner.sh run out of the source directory

it needs to find the default config file
This commit is contained in:
Earl Warren 2023-10-11 15:44:25 +02:00
parent 37e5096b0d
commit a2d04e1ca5
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00

View file

@ -3,7 +3,8 @@
set -ex
: ${FORGEJO_RUNNER_CONFIG:=$(pwd)/runner-config.yaml}
SELF_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
: ${FORGEJO_RUNNER_CONFIG:=$SELF_DIR/runner-config.yaml}
function dependencies() {
if ! which curl daemon > /dev/null ; then