Explorar o código

Extra sudo before tee command

Vineet Dixit %!s(int64=9) %!d(string=hai) anos
pai
achega
e51c42355e
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