From 27ecefec40485cd0eb99020c03c1bbc3a0f3f691 Mon Sep 17 00:00:00 2001 From: Grzegorz Kosciolek Date: Fri, 17 Aug 2018 22:43:26 +0200 Subject: [PATCH] Fix the loop to make it sh compatible --- scripts/util.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/util.sh b/scripts/util.sh index a3b65b4..afe376e 100644 --- a/scripts/util.sh +++ b/scripts/util.sh @@ -16,7 +16,7 @@ error() { parse_domains() { # For each configuration file in /etc/nginx/conf.d/*.conf* for conf_file in /etc/nginx/conf.d/*.conf*; do - sed -n -e 's&^\s*ssl_certificate_key\s*\/etc/letsencrypt/live/\(.*\)/privkey.pem;&\1&p' $conf_file | xargs echo | tr ' ' ',' + sed -n -e 's&^\s*ssl_certificate_key\s*\/etc/letsencrypt/live/\(.*\)/privkey.pem;&\1&p' $conf_file | xargs echo done }