From 685717ca4f5cb6e2bfc4909aa455bb953acf5e95 Mon Sep 17 00:00:00 2001 From: Jordan Wiseman <35307756+jordanwiseman@users.noreply.github.com> Date: Sun, 24 Feb 2019 22:18:53 -0800 Subject: [PATCH] change postfix-and-dovecot to postfix_and_dovecot changed "-" to "_" in function name. also changed in file paths for consistency --- deploy/{postfix-and-dovecot.sh => postfix_and_dovecot.sh} | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) rename deploy/{postfix-and-dovecot.sh => postfix_and_dovecot.sh} (93%) diff --git a/deploy/postfix-and-dovecot.sh b/deploy/postfix_and_dovecot.sh similarity index 93% rename from deploy/postfix-and-dovecot.sh rename to deploy/postfix_and_dovecot.sh index 1b282878..435eaa70 100644 --- a/deploy/postfix-and-dovecot.sh +++ b/deploy/postfix_and_dovecot.sh @@ -16,7 +16,7 @@ ######## Public functions ##################### #domain keyfile certfile cafile fullchain -postfix-and-dovecot_deploy() { +postfix_and_dovecot_deploy() { _cdomain="$1" _ckey="$2" _ccert="$3" @@ -29,19 +29,19 @@ postfix-and-dovecot_deploy() { _debug _cca "$_cca" _debug _cfullchain "$_cfullchain" - _ssl_path="/etc/acme.sh/postfix-and-dovecot" + _ssl_path="/etc/acme.sh/postfix_and_dovecot" if ! mkdir -p "$_ssl_path"; then _err "Can not create folder:$_ssl_path" return 1 fi _info "Copying key and cert" - _real_key="$_ssl_path/postfix-and-dovecot.key" + _real_key="$_ssl_path/postfix_and_dovecot.key" if ! cat "$_ckey" >"$_real_key"; then _err "Error: write key file to: $_real_key" return 1 fi - _real_fullchain="$_ssl_path/postfix-and-dovecot.chain.pem" + _real_fullchain="$_ssl_path/postfix_and_dovecot.chain.pem" if ! cat "$_cfullchain" >"$_real_fullchain"; then _err "Error: write key file to: $_real_fullchain" return 1