delete acme responder by user name instead of script name
authorAndreas Bilke <andreas@bilke.org>
Sun, 12 Jun 2016 09:44:06 +0000 (11:44 +0200)
committerAndreas Bilke <andreas@bilke.org>
Sun, 12 Jun 2016 09:44:06 +0000 (11:44 +0200)
letsencrypt-helper/refresh-acme-certificate-standalone

index a38d911..15cfd5f 100755 (executable)
@@ -100,7 +100,7 @@ cat $TMP_SIGNED_CERT $PUBLIC_KEY_DIR/letsencrypt-intermediate.pem > "$PUBLIC_KEY
 rm $TMP_SIGNED_CERT
 
 echo "Kill acme-http-responder"
-kill -TERM `pgrep "acme-http-responder"`
+kill -TERM `pgrep -u letsencrypt`
 
 echo "Delete firewall rules"
 iptables -D INPUT -p tcp --dport "$SERVER_PORT" -j ACCEPT