From 10c185569b6c3d7076a800fcf2cd28630e46e64a Mon Sep 17 00:00:00 2001 From: Georgi Georgiev Date: Mon, 27 Mar 2023 14:12:18 +0300 Subject: [PATCH] Add support for `$GITEA_CUSTOM` More information about gitea customization can be found on their web page [1]. [1]: https://docs.gitea.io/en-us/customizing-gitea/ --- gitea-openrc/x86_64/community/gitea.confd | 1 + gitea-openrc/x86_64/community/gitea.initd | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/gitea-openrc/x86_64/community/gitea.confd b/gitea-openrc/x86_64/community/gitea.confd index 03e0b543..ea963a7c 100644 --- a/gitea-openrc/x86_64/community/gitea.confd +++ b/gitea-openrc/x86_64/community/gitea.confd @@ -4,3 +4,4 @@ GITEA_USER=gitea GITEA_CONF=/etc/gitea/app.ini GITEA_WORK_DIR=/var/lib/gitea GITEA_LOG_FILE=/var/log/gitea/http.log +GITEA_CUSTOM=${GITEA_WORK_DIR}/custom diff --git a/gitea-openrc/x86_64/community/gitea.initd b/gitea-openrc/x86_64/community/gitea.initd index 61e5f29d..8455631b 100644 --- a/gitea-openrc/x86_64/community/gitea.initd +++ b/gitea-openrc/x86_64/community/gitea.initd @@ -5,7 +5,7 @@ name=gitea command="/usr/bin/gitea" command_user="${GITEA_USER:-gitea}" command_args="web --config '${GITEA_CONF:-/etc/gitea/app.ini}'" -supervise_daemon_args="--env GITEA_WORK_DIR='${GITEA_WORK_DIR:-/var/lib/gitea}' --chdir '${GITEA_WORK_DIR:-/var/lib/gitea}' --stdout '${GITEA_LOG_FILE:-/var/log/gitea/http.log}' --stderr '${GITEA_LOG_FILE:-/var/log/gitea/http.log}'" +supervise_daemon_args="--env GITEA_CUSTOM='${GITEA_CUSTOM:-/var/lib/gitea/custom}' --env GITEA_WORK_DIR='${GITEA_WORK_DIR:-/var/lib/gitea}' --chdir '${GITEA_WORK_DIR:-/var/lib/gitea}' --stdout '${GITEA_LOG_FILE:-/var/log/gitea/http.log}' --stderr '${GITEA_LOG_FILE:-/var/log/gitea/http.log}'" pidfile="/run/gitea.pid" depend() {