Better way to restart services in v-update-host-certificate

This commit is contained in:
dpeca 2018-04-07 00:20:35 +02:00 committed by GitHub
commit 082095b164
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -72,11 +72,13 @@ chown $exim_user:mail $VESTA/ssl/certificate.crt
chown $exim_user:mail $VESTA/ssl/certificate.key chown $exim_user:mail $VESTA/ssl/certificate.key
# Restart exim, dovecot & vesta # Restart exim, dovecot & vesta
v-restart-mail $BIN/v-restart-mail
v-restart-service dovecot if [ ! -z "$IMAP_SYSTEM" ]; then
v-restart-service vesta $BIN/v-restart-service "$IMAP_SYSTEM"
fi
if [ -f "/var/run/vesta-nginx.pid" ]; then
kill -HUP $(cat /var/run/vesta-nginx.pid)
fi
#----------------------------------------------------------# #----------------------------------------------------------#
# Vesta # # Vesta #