From 05e03b964453df71e7c3fb953f422b75174954b2 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 30 Apr 2022 23:25:15 +0200 Subject: Avoid failing if /var/lib/dehydrated/certs doesn't exist in dehydrated fix-permissions hook. Signed-off-by: Daniel Baumann --- dehydrated/share/hooks/exit_hook.fix-permissions | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'dehydrated/share/hooks/exit_hook.fix-permissions') 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 -- cgit v1.2.3