gitea: keep config file permissions
xbps-install overwrites the uid/gid of config files during install even
if the file is a config file. This breaks the gitea runit service as it
isn't allowed to read it's own config file.
eaccf4813d/lib/package_unpack.c (L385)
This commit is contained in:
parent
e527ec1958
commit
44019c0095
|
@ -1,7 +1,15 @@
|
|||
case "$ACTION" in
|
||||
pre)
|
||||
if [ "$update" = "yes" ] ; then
|
||||
touch tmp/gitea_permissions
|
||||
chmod --reference=etc/gitea.conf tmp/gitea_permissions
|
||||
chown --reference=etc/gitea.conf tmp/gitea_permissions
|
||||
fi
|
||||
post)
|
||||
if [ "$UPDATE" = "yes" ] ; then
|
||||
:
|
||||
chmod --reference=tmp/gitea_permissions etc/gitea.conf
|
||||
chown --reference=tmp/gitea_permissions etc/gitea.conf
|
||||
rm tmp/gitea_permissions
|
||||
else
|
||||
# This sets the secret key which would otherwise be
|
||||
# distributed as a static packaged value
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'gitea'
|
||||
pkgname=gitea
|
||||
version=1.4.1
|
||||
revision=1
|
||||
revision=2
|
||||
build_style=go
|
||||
go_import_path="code.gitea.io/gitea"
|
||||
# This could be done with build options, but these are built in with the
|
||||
|
|
Loading…
Reference in New Issue