From 5e0da873edef85d6494a7ad90ec5fcbeda7530e2 Mon Sep 17 00:00:00 2001 From: zenobit Date: Thu, 3 Mar 2022 08:14:29 +0100 Subject: [PATCH] gitea: update to 1.16.3 --- srcpkgs/gitea/files/gitea/run | 14 ++++++++------ srcpkgs/gitea/template | 4 ++-- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/srcpkgs/gitea/files/gitea/run b/srcpkgs/gitea/files/gitea/run index d24ce523bba7..6a621804bdd0 100755 --- a/srcpkgs/gitea/files/gitea/run +++ b/srcpkgs/gitea/files/gitea/run @@ -1,9 +1,11 @@ #!/bin/sh -# We cd here, because builtin SSH won't run without. -cd /var/lib/gitea || exit 1 +# USER and HOME are needed because gitea doesn't actually check the user it +# runs as, but instead just grabs the variables from the variables. +export USER=_gitea +export HOME=/var/lib/gitea -# The USER variable is needed here because gitea doesn't actually -# check what user its running as, it instead grabs the USER variable -# from the environment. HOME is set for the same reasons. -USER=_gitea HOME=/var/lib/gitea GITEA_WORK_DIR=$HOME exec chpst -u _gitea:_gitea gitea web --config /etc/gitea.conf +# 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 diff --git a/srcpkgs/gitea/template b/srcpkgs/gitea/template index e8843a9f1a37..75d8c4290fe4 100644 --- a/srcpkgs/gitea/template +++ b/srcpkgs/gitea/template @@ -1,6 +1,6 @@ # Template file for 'gitea' pkgname=gitea -version=1.16.1 +version=1.16.3 revision=1 create_wrksrc=yes build_style=go @@ -32,7 +32,7 @@ license="MIT" homepage="https://gitea.io" changelog="https://github.com/go-gitea/gitea/blob/master/CHANGELOG.md" distfiles="https://github.com/go-gitea/gitea/releases/download/v${version}/gitea-src-${version}.tar.gz" -checksum=09a27a06bf12cbef06ba823c516c6c9f7a06129e91dd7e64be5f6f0ca641d5b7 +checksum=913f3b095fcfd4c5012d17adcd8748b081950e3a7d17ace60f6a2f99c9b2e18b system_accounts="_gitea" _gitea_homedir="/var/lib/gitea"