Explorar o código

Merge pull request #7 from vineetdigit/master

Extra sudo before tee command
Jan B %!s(int64=9) %!d(string=hai) anos
pai
achega
5e6aa68e6b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      cert-renewal-haproxy.sh

+ 1 - 1
cert-renewal-haproxy.sh

@@ -90,7 +90,7 @@ done < <(find /etc/letsencrypt/live -name cert.pem -print0)
 
 # create haproxy.pem file(s)
 for domain in ${renewed_certs[@]}; do
-  cat ${le_cert_root}/${domain}/privkey.pem ${le_cert_root}/${domain}/fullchain.pem | sudo tee ${le_cert_root}/${domain}/haproxy.pem >/dev/null
+  cat ${le_cert_root}/${domain}/privkey.pem ${le_cert_root}/${domain}/fullchain.pem | tee ${le_cert_root}/${domain}/haproxy.pem >/dev/null
   if [ $? -ne 0 ]; then
     logger_error "failed to create haproxy.pem file!"
     exit 1