From cb674fd7772dcb7ebd54a3f711a4d52b97f65c4d Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 5 May 2023 19:09:21 +0200 Subject: [Ldadp] Change perms of ca-bundle too --- scripts/ldadp-setperms | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/ldadp-setperms b/scripts/ldadp-setperms index 2c6ea08..51b9e59 100755 --- a/scripts/ldadp-setperms +++ b/scripts/ldadp-setperms @@ -11,8 +11,9 @@ FILE="${BASE}/${1}" [ -e "${FILE}.crt.pem" ] || exit 8 [ -e "${FILE}.key.pem" ] || exit 7 -for ext in cfg crt.pem key.pem; do +for ext in cfg crt.pem key.pem ca-bundle.pem; do file="${FILE}.${ext}" + [ -e "$file" ] || continue /bin/chown taskmanager:ldadp "$file" || exit 6 /bin/chmod 0640 "$file" || exit 5 done -- cgit v1.2.3-55-g7522