blob: 6c503d679d3dcbe509165b13af1012897dee0b5e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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
|