aboutsummaryrefslogtreecommitdiffstats
path: root/example-hook.sh
diff options
context:
space:
mode:
Diffstat (limited to 'example-hook.sh')
-rw-r--r--example-hook.sh27
1 files changed, 0 insertions, 27 deletions
diff --git a/example-hook.sh b/example-hook.sh
deleted file mode 100644
index 48eb07b..0000000
--- a/example-hook.sh
+++ /dev/null
@@ -1,27 +0,0 @@
-#! /bin/sh
-# This source code is released into the public domain.
-#
-# An example hook.
-
-# Action is always 'newcert', at least for now.
-action="$1"
-
-# Environment variables:
-# $LFACME_CERT is the name of the certificate
-# $LFACME_CERTFILE is the filename of the certificate.
-# $LFACME_KEYFILE is the filename of the private key.
-
-set -e
-
-case "$action" in
-newcert)
- # The certificate was issued or renewed.
- cp "$LFACME_CERTFILE" /usr/local/etc/nginx/tls/cert.pem
- cp "$LFACME_KEYFILE" /usr/local/etc/nginx/tls/key.pem
- nginx -s reload
- ;;
-
-*)
- # Ignore unknown actions, because new ones might be added later.
- ;;
-esac