From 7ada97fc09c649eb62fcab1f64d18aa5df79f7c0 Mon Sep 17 00:00:00 2001 From: Alex Denes Date: Tue, 9 Feb 2021 19:42:12 +0000 Subject: [PATCH] Don't log to file that isn't rotated for gitea --- config/gitea/APKBUILD | 6 +++--- openrc/gitea/APKBUILD | 8 ++++---- openrc/gitea/conffile | 1 + openrc/gitea/runfile | 2 +- 4 files changed, 9 insertions(+), 8 deletions(-) diff --git a/config/gitea/APKBUILD b/config/gitea/APKBUILD index 767c1cd..f6ba1a2 100644 --- a/config/gitea/APKBUILD +++ b/config/gitea/APKBUILD @@ -4,8 +4,8 @@ _svcname=gitea . ../APKBUILD-config.common -pkgver=2021.01.27 -pkgrel=2 +pkgver=2021.02.09 +pkgrel=0 depends="redxen-data-gitea-theme" source="redxen.ini" @@ -14,4 +14,4 @@ package() { mkdir -p "$pkgdir"/var/lib/gitea } -sha512sums="41d387f28981777fa52581fe00549d15677bbafa232f82b504ed342ce188cdddabffbd9bb900ad7d0f5b73d7c4f78599715541f46b93b42b22f2f5077455c1eb redxen.ini" +sha512sums="8d34bd29fead331e31ad37a6e764d47f04e43ce8a16fb3990eea02dbd19b1b758ecc4f23750e1f14e7398f7c40d3773247140e119de6c42f6393e86f8348b14c redxen.ini" diff --git a/openrc/gitea/APKBUILD b/openrc/gitea/APKBUILD index 526b294..f539232 100644 --- a/openrc/gitea/APKBUILD +++ b/openrc/gitea/APKBUILD @@ -5,8 +5,8 @@ _grpname=git . ../APKBUILD-openrc.common -pkgver=2021.01.26 -pkgrel=2 +pkgver=2021.02.09 +pkgrel=0 -sha512sums="bc341c2ebaa77ed1a2ce8c75f42fa163071ff7d8af49c7263dac278fef333e974aa62b25443002a95daa105543d0e92921a8056fe97e4f1fce8a3ac97270006c runfile -958773d7921fb92d30c9f30894d78b08785afcd64318f8d49654b27483ed653fe32a9ac482a19202b1f3bebebadaf4f87392dab068faac81b77fe4f5f5d60906 conffile" +sha512sums="26ca117a8c228bbcfc04c2facc603098ee341a1d03bf1eca1bbfa9c44cea77314dac11d2f11da2ee4c7b30c5b1f5003973e9b42e62a00710814343aa2cbf7032 runfile +c24a89bf6775328d40c9b9b4a589210cfab7e8c77cfd271b15e94ba8e56d805095b0f6b676de3d40d1d946e298916e2c2a69cd290a0d1f213b37f636f39e2b0d conffile" diff --git a/openrc/gitea/conffile b/openrc/gitea/conffile index 231564c..ef1a07f 100644 --- a/openrc/gitea/conffile +++ b/openrc/gitea/conffile @@ -1,3 +1,4 @@ GITEA_CONF=/etc/gitea/redxen.ini GITEA_WORK_DIR=/var/lib/gitea GITEA_CUSTOM=/usr/share/gitea/custom +error_logger="logger -t $RC_SVCNAME" diff --git a/openrc/gitea/runfile b/openrc/gitea/runfile index 9a9bfa7..4ec5af2 100644 --- a/openrc/gitea/runfile +++ b/openrc/gitea/runfile @@ -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}' --env GITEA_CUSTOM='${GITEA_CUSTOM:-/var/lib/gitea/custom}' --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_WORK_DIR='${GITEA_WORK_DIR:-/var/lib/gitea}' --env GITEA_CUSTOM='${GITEA_CUSTOM:-/var/lib/gitea/custom}' --chdir '${GITEA_WORK_DIR:-/var/lib/gitea}'" pidfile="/run/gitea.pid" depend() {