radicale3: fix permissions on ssl cert/key

When LuCI uploads files like the SSL key and certificate, it makes the
files readable only by root. Since radicale is running as a
non-privileged user it is unable to access a certificate and key
uploaded by LuCI, therefore when SSL cert and key (and optional CA) are
configured, make them group radicale3 and group readable, so the
radicale server can use them.

Signed-off-by: Daniel F. Dickinson <dfdpublic@wildtechgarden.ca>
(cherry picked from commit ecf9fb51db)
This commit is contained in:
Daniel F. Dickinson authored and Josef Schlehofer committed 2026-01-23 15:23:47 +07:00
1 parent 630ffca4de
commit 7f4c192dcb
2 files changed
+14

No files matched your search

+2
View File
@@ -18,6 +18,8 @@ PYPI_NAME:=Radicale
PYPI_SOURCE_NAME:=radicale
PKG_HASH:=569f2a8cf990faf9bb25b7442f36ddd439526b95db81d8878952d77836ab3d4c
PKG_MAINTAINER:=Daniel F. Dickinson <dfdpublic@wildtechgarden.ca>
include ../../lang/python/pypi.mk
include $(INCLUDE_DIR)/package.mk
include ../../lang/python/python3-package.mk
+12
View File
@@ -72,8 +72,20 @@ conf_section() {
conf_getline "$cfg" "$cfgfile" ssl 0 1
if [ "$value" -eq 1 ]; then
conf_getline "$cfg" "$cfgfile" certificate
if [ "$value" != "" ]; then
chgrp radicale3 "$value"
chmod g+r "$value"
fi
conf_getline "$cfg" "$cfgfile" key
if [ "$value" != "" ]; then
chgrp radicale3 "$value"
chmod g+r "$value"
fi
conf_getline "$cfg" "$cfgfile" certificate_authority
if [ "$value" != "" ]; then
chgrp radicale3 "$value"
chmod g+r "$value"
fi
conf_getline "$cfg" "$cfgfile" protocol
conf_getline "$cfg" "$cfgfile" ciphers
fi