]> TLD Linux GIT Repositories - packages/dehydrated.git/blobdiff - hook.sh
- added strartup and exit hooks
[packages/dehydrated.git] / hook.sh
diff --git a/hook.sh b/hook.sh
index 2025617099ab009a84a13bc84e2d1142ebfda837..283ed79671ed713418f255a4f522087164ab8724 100755 (executable)
--- a/hook.sh
+++ b/hook.sh
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 
 # Directory with per certificate hook scripts called after
 # certificate is successfully deployed
@@ -28,7 +28,10 @@ request_failure)
 unchanged_cert)
   unchanged_cert "$@"
   ;;
-*)
-  echo " + Hook: ${HANDLER}: Nothing to do..."
+startup_hook)
+  startup_hook "$@"
+  ;;
+exit_hook)
+  exit_hook "$@"
   ;;
 esac