diff options
author | Simon Rettberg | 2023-05-05 19:09:21 +0200 |
---|---|---|
committer | Simon Rettberg | 2023-05-05 19:09:21 +0200 |
commit | cb674fd7772dcb7ebd54a3f711a4d52b97f65c4d (patch) | |
tree | 1bba960280e25f4e7f66fa9736e586899d8b946c | |
parent | [BackupRestore] Add support for archive testing and encryption (diff) | |
download | tmlite-bwlp-cb674fd7772dcb7ebd54a3f711a4d52b97f65c4d.tar.gz tmlite-bwlp-cb674fd7772dcb7ebd54a3f711a4d52b97f65c4d.tar.xz tmlite-bwlp-cb674fd7772dcb7ebd54a3f711a4d52b97f65c4d.zip |
[Ldadp] Change perms of ca-bundle too
-rwxr-xr-x | scripts/ldadp-setperms | 3 |
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 |