summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2023-05-05 19:09:21 +0200
committerSimon Rettberg2023-05-05 19:09:21 +0200
commitcb674fd7772dcb7ebd54a3f711a4d52b97f65c4d (patch)
tree1bba960280e25f4e7f66fa9736e586899d8b946c
parent[BackupRestore] Add support for archive testing and encryption (diff)
downloadtmlite-bwlp-cb674fd7772dcb7ebd54a3f711a4d52b97f65c4d.tar.gz
tmlite-bwlp-cb674fd7772dcb7ebd54a3f711a4d52b97f65c4d.tar.xz
tmlite-bwlp-cb674fd7772dcb7ebd54a3f711a4d52b97f65c4d.zip
[Ldadp] Change perms of ca-bundle too
-rwxr-xr-xscripts/ldadp-setperms3
1 files changed, 2 insertions, 1 deletions
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