From 12306ce834f2a35ed33f2d106e97e3bf8028712a Mon Sep 17 00:00:00 2001 From: Robin Dirksen Date: Thu, 12 Apr 2018 14:28:23 +0200 Subject: [PATCH 1/2] Update v-update-host-certificate Restart mailserver & ftpserver based on `conf/vesta.conf` settings, so the new certificate will be applied. --- bin/v-update-host-certificate | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bin/v-update-host-certificate b/bin/v-update-host-certificate index e777afbd7..dd99eed44 100755 --- a/bin/v-update-host-certificate +++ b/bin/v-update-host-certificate @@ -76,6 +76,12 @@ $BIN/v-restart-mail if [ ! -z "$IMAP_SYSTEM" ]; then $BIN/v-restart-service "$IMAP_SYSTEM" fi +if [ ! -z "$MAIL_SYSTEM" ]; then + $BIN/v-restart-service "$MAIL_SYSTEM" +fi +if [ ! -z "$FTP_SYSTEM" ]; then + $BIN/v-restart-service "$FTP_SYSTEM" +fi if [ -f "/var/run/vesta-nginx.pid" ]; then kill -HUP $(cat /var/run/vesta-nginx.pid) fi From d14d4cddfb7fcb070c3672c68bdd4136ab0f1b05 Mon Sep 17 00:00:00 2001 From: Robin Dirksen Date: Thu, 12 Apr 2018 16:27:47 +0200 Subject: [PATCH 2/2] Update v-update-host-certificate https://github.com/serghey-rodin/vesta/pull/1543#issuecomment-380798986 --- bin/v-update-host-certificate | 3 --- 1 file changed, 3 deletions(-) diff --git a/bin/v-update-host-certificate b/bin/v-update-host-certificate index dd99eed44..71a87709a 100755 --- a/bin/v-update-host-certificate +++ b/bin/v-update-host-certificate @@ -76,9 +76,6 @@ $BIN/v-restart-mail if [ ! -z "$IMAP_SYSTEM" ]; then $BIN/v-restart-service "$IMAP_SYSTEM" fi -if [ ! -z "$MAIL_SYSTEM" ]; then - $BIN/v-restart-service "$MAIL_SYSTEM" -fi if [ ! -z "$FTP_SYSTEM" ]; then $BIN/v-restart-service "$FTP_SYSTEM" fi