mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-04-30 10:12:44 +00:00
change postfix-and-dovecot to postfix_and_dovecot
changed "-" to "_" in function name. also changed in file paths for consistency
This commit is contained in:
parent
2a1d9fe3b8
commit
8f7b4bcd9b
@ -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
|
Loading…
x
Reference in New Issue
Block a user