From 9a2ca60c3162dc1f5a328e7236d490c663f1ecf7 Mon Sep 17 00:00:00 2001 From: cbdweb Date: Sat, 26 Oct 2019 19:07:13 +1100 Subject: [PATCH] use sed to substitute ${domain}. Is there a better way? --- getssl | 1 + 1 file changed, 1 insertion(+) diff --git a/getssl b/getssl index 945a4bd..e8fc270 100755 --- a/getssl +++ b/getssl @@ -1287,6 +1287,7 @@ usage() { # echos out the program usage write_domain_template() { # write out a template file for a domain. if [[ -s "$WORKING_DIR/getssl_default.cfg" ]]; then cp $WORKING_DIR/getssl_default.cfg "$1" + sed -i 's/\$\{domain\}/${domain}/g "$1" else cat > "$1" <<- _EOF_domain_ # Uncomment and modify any variables you need