Просмотр исходного кода

Update v-update-host-certificate

Restart mailserver & ftpserver based on `conf/vesta.conf` settings, so the new certificate will be applied.
Robin Dirksen 7 лет назад
Родитель
Сommit
12306ce834
1 измененных файлов с 6 добавлено и 0 удалено
  1. 6 0
      bin/v-update-host-certificate

+ 6 - 0
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