Browse Source

use sed to substitute ${domain}. Is there a better way?

pull/443/head
cbdweb 6 years ago
parent
commit
9a2ca60c31
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      getssl

+ 1
- 0
getssl View File

@ -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


Loading…
Cancel
Save