summaryrefslogtreecommitdiffstats
path: root/dehydrated/share/hooks/exit_hook.fix-permissions
diff options
context:
space:
mode:
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