summaryrefslogtreecommitdiffstats
path: root/dehydrated/share/hooks/exit_hook.fix-permissions
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2022-04-30 22:02:24 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2022-04-30 22:02:24 +0000
commit4b2ffced088c16fab3660444f596d14063122205 (patch)
tree34bef914328f7b6df83ddf515a645c27b667ebf0 /dehydrated/share/hooks/exit_hook.fix-permissions
parentAdding upstream version 20220414. (diff)
downloadopen-infrastructure-service-tools-4b2ffced088c16fab3660444f596d14063122205.tar.xz
open-infrastructure-service-tools-4b2ffced088c16fab3660444f596d14063122205.zip
Adding upstream version 20220430.upstream/20220430
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'dehydrated/share/hooks/exit_hook.fix-permissions')
-rwxr-xr-xdehydrated/share/hooks/exit_hook.fix-permissions5
1 files changed, 5 insertions, 0 deletions
diff --git a/dehydrated/share/hooks/exit_hook.fix-permissions b/dehydrated/share/hooks/exit_hook.fix-permissions
index 1e089f7..6a1958d 100755
--- a/dehydrated/share/hooks/exit_hook.fix-permissions
+++ b/dehydrated/share/hooks/exit_hook.fix-permissions
@@ -21,6 +21,11 @@
set -e
+if [ ! -e /var/lib/dehydrated/certs ]
+then
+ exit 0
+fi
+
echo " + Fixing permissions..."
if getent group ssl-cert > /dev/null 2>&1