summaryrefslogtreecommitdiffstats
path: root/dehydrated/share
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2022-04-30 21:25:15 +0000
committerDaniel Baumann <mail@daniel-baumann.ch>2022-04-30 21:58:22 +0000
commit05e03b964453df71e7c3fb953f422b75174954b2 (patch)
tree05b9e4df7153db039b4342fdfd33d5c402285624 /dehydrated/share
parentUsing localhost as fallback in kresd-cache-clear. (diff)
downloadservice-tools-05e03b964453df71e7c3fb953f422b75174954b2.tar.xz
service-tools-05e03b964453df71e7c3fb953f422b75174954b2.zip
Avoid failing if /var/lib/dehydrated/certs doesn't exist in dehydrated fix-permissions hook.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to '')
-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