diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2022-11-22 14:37:08 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2022-11-22 14:37:08 +0000 |
commit | 2aaa54d4fc7c1e7f642b69b6087646ac991d9298 (patch) | |
tree | 4f4ad0a5cd3b1f08469bead56eb219bf882b46f2 /dehydrated/share/hooks/exit_hook.fix-permissions | |
parent | Releasing debian version 20221108-2. (diff) | |
download | open-infrastructure-service-tools-2aaa54d4fc7c1e7f642b69b6087646ac991d9298.tar.xz open-infrastructure-service-tools-2aaa54d4fc7c1e7f642b69b6087646ac991d9298.zip |
Merging upstream version 20221122.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'dehydrated/share/hooks/exit_hook.fix-permissions')
-rwxr-xr-x | dehydrated/share/hooks/exit_hook.fix-permissions | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/dehydrated/share/hooks/exit_hook.fix-permissions b/dehydrated/share/hooks/exit_hook.fix-permissions index 4a467a7..aa15553 100755 --- a/dehydrated/share/hooks/exit_hook.fix-permissions +++ b/dehydrated/share/hooks/exit_hook.fix-permissions @@ -21,7 +21,7 @@ set -e -if [ ! -e /var/lib/dehydrated/certs ] +if [ ! -e "${CERTDIR}" ] then exit 0 fi @@ -31,10 +31,10 @@ then echo -n " + Fixing file owner and permissions..." # https://bugs.debian.org/854431 - chown -R root:ssl-cert /var/lib/dehydrated/certs + chown -R root:ssl-cert "${CERTDIR}" - find /var/lib/dehydrated/certs -type d -exec chmod 0750 {} \; - find /var/lib/dehydrated/certs -type f -exec chmod 0640 {} \; + find "${CERTDIR}" -type d -exec chmod 0750 {} \; + find "${CERTDIR}" -type f -exec chmod 0640 {} \; echo " done." fi |