Преглед изворни кода

Don't stop Apache until we have to; start it again right after.

Carl Meyer пре 8 година
родитељ
комит
0abf92734e
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2
    1
      roles/common/files/letsencrypt-gencert

+ 2
- 1
roles/common/files/letsencrypt-gencert Прегледај датотеку

@@ -1,9 +1,10 @@
1 1
 #!/bin/bash
2
-service apache2 stop
3 2
 d="$1"
4 3
 for i in www mail autoconfig read news cloud git; do
5 4
   if (getent hosts $i.$1 > /dev/null); then
6 5
     d="$d,$i.$1";
7 6
   fi
8 7
 done
8
+service apache2 stop
9 9
 /root/letsencrypt/letsencrypt-auto certonly -c /etc/letsencrypt/cli.conf --domains $d
10
+service apache2 start

Loading…
Откажи
Сачувај