From 44b6c96fa12ce9d993c7a2ac9486d892735b7e3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89rico=20Nogueira?= Date: Thu, 26 May 2022 09:38:06 -0300 Subject: [PATCH] gitea: update to 1.16.8. - add log service - cd into $HOME before running: fixes issues with APP_DATA_PATH being a relative path, which is the default in the example config. See [1] [1] https://github.com/go-gitea/gitea/issues/19367 --- srcpkgs/gitea/files/gitea/log/run | 1 + srcpkgs/gitea/files/gitea/run | 3 ++- srcpkgs/gitea/template | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) create mode 120000 srcpkgs/gitea/files/gitea/log/run diff --git a/srcpkgs/gitea/files/gitea/log/run b/srcpkgs/gitea/files/gitea/log/run new file mode 120000 index 00000000000..3a5b4a58605 --- /dev/null +++ b/srcpkgs/gitea/files/gitea/log/run @@ -0,0 +1 @@ +/usr/bin/vlogger \ No newline at end of file diff --git a/srcpkgs/gitea/files/gitea/run b/srcpkgs/gitea/files/gitea/run index 6a621804bdd..0644a789526 100755 --- a/srcpkgs/gitea/files/gitea/run +++ b/srcpkgs/gitea/files/gitea/run @@ -8,4 +8,5 @@ export HOME=/var/lib/gitea # gitea needs to run from its home for SSH to work properly export GITEA_WORK_DIR="${HOME}" -exec chpst -u _gitea:_gitea gitea web --config /etc/gitea.conf +cd "${HOME}" +exec chpst -u _gitea:_gitea gitea web --config /etc/gitea.conf 2>&1 diff --git a/srcpkgs/gitea/template b/srcpkgs/gitea/template index b24b3171b49..33ed4c7e16a 100644 --- a/srcpkgs/gitea/template +++ b/srcpkgs/gitea/template @@ -1,6 +1,6 @@ # Template file for 'gitea' pkgname=gitea -version=1.16.7 +version=1.16.8 revision=1 create_wrksrc=yes build_style=go @@ -32,7 +32,7 @@ license="MIT" homepage="https://gitea.io" changelog="https://raw.githubusercontent.com/go-gitea/gitea/main/CHANGELOG.md" distfiles="https://dl.gitea.io/gitea/${version}/gitea-src-${version}.tar.gz" -checksum=51599b16d1c2e16dd617e0e9b5d1cc314a1ef141394d582833d411b9ccd2ac48 +checksum=5bf01b45f9c441f9d38d727cc1328414e4e5778ac5b01bc98979d82bc520a23d system_accounts="_gitea" _gitea_homedir="/var/lib/gitea"