aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpsykose <alice@ayaya.dev>2022-06-23 06:30:13 +0000
committerpsykose <alice@ayaya.dev>2022-06-23 08:30:13 +0200
commita1e696a2c3f0d28e065e31682fc6de82db41bd23 (patch)
tree606546672f9fc9ac01d49ef719b8ebb49c69afa7
parentf04a10d9ccf771be4d2b3537fb097d79175cd979 (diff)
downloadaports-a1e696a2c3f0d28e065e31682fc6de82db41bd23.tar.gz
aports-a1e696a2c3f0d28e065e31682fc6de82db41bd23.tar.bz2
aports-a1e696a2c3f0d28e065e31682fc6de82db41bd23.tar.xz
community/gitea: don't run passwd -u without fresh user creation
-rw-r--r--community/gitea/APKBUILD3
-rw-r--r--community/gitea/gitea.pre-install4
2 files changed, 3 insertions, 4 deletions
diff --git a/community/gitea/APKBUILD b/community/gitea/APKBUILD
index bf53a27d69..11e420e3c2 100644
--- a/community/gitea/APKBUILD
+++ b/community/gitea/APKBUILD
@@ -4,10 +4,9 @@
# Maintainer: 6543 <6543@obermui.de>
pkgname=gitea
pkgver=1.16.8
-pkgrel=0
+pkgrel=1
pkgdesc="A self-hosted Git service written in Go"
url="https://gitea.io"
-# armhf: failing tests
arch="all"
license="MIT"
options="net"
diff --git a/community/gitea/gitea.pre-install b/community/gitea/gitea.pre-install
index b239cccc0d..0c508e75b8 100644
--- a/community/gitea/gitea.pre-install
+++ b/community/gitea/gitea.pre-install
@@ -1,7 +1,7 @@
#!/bin/sh
addgroup -S -g 82 www-data 2>/dev/null
-adduser -S -D -h /var/lib/gitea -s /bin/ash -G www-data -g gitea gitea 2>/dev/null
-passwd -u gitea 2>/dev/null
+adduser -S -D -h /var/lib/gitea -s /bin/ash -G www-data -g gitea gitea 2>/dev/null \
+ && passwd -u gitea 2>/dev/null
exit 0