aboutsummaryrefslogtreecommitdiffstats
path: root/roles/web/files/deploy.sh
diff options
context:
space:
mode:
Diffstat (limited to 'roles/web/files/deploy.sh')
-rwxr-xr-xroles/web/files/deploy.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/roles/web/files/deploy.sh b/roles/web/files/deploy.sh
new file mode 100755
index 0000000..6c503d6
--- /dev/null
+++ b/roles/web/files/deploy.sh
@@ -0,0 +1,17 @@
+#!/bin/sh -e
+#
+# Restart the services after renewing the certificate(s) to deploy the
+# changed certificate(s).
+#
+# This script will be weekly executed. See "/etc/periodic.conf".
+#
+# Aaron LI
+#
+
+# Services to be restarted after ACME certificate update
+SERVICES="nginx dovecot postfix"
+
+for srv in ${SERVICES}; do
+ echo "ACME deploy: restarting ${srv} ..."
+ service ${srv} restart
+done