Skip to content

Commit

Permalink
Define GITEA_REPOSITORY_ROOT.
Browse files Browse the repository at this point in the history
This isn't an environment variable Gitea uses,
but it is close to a name in its config file:
[repository].ROOT.

The worker will need this to find its input.

This mirrors the rules for that's default value.
  • Loading branch information
kousu committed Feb 25, 2023
1 parent 2d9114c commit 6d9aec7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions start
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ set -e

: ${GITEA_CUSTOM:="$GITEA_WORK_DIR/custom"}

: ${GITEA_APP_DATA_PATH:="$GITEA_WORK_DIR/data"}
: ${GITEA_REPOSITORY_ROOT:="$GITEA_APP_DATA_PATH/gitea-repositories"}

export GITEA_REPOSITORY_ROOT
export GITEA_CUSTOM

# 127.0.0.1 is localhost, and 2845 is 0xB1D
Expand Down

0 comments on commit 6d9aec7

Please sign in to comment.