Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
08ae8cc3
Unverified
Commit
08ae8cc3
authored
Apr 11, 2022
by
quthla
Committed by
GitHub
Apr 11, 2022
Browse files
Fix
parent
201673ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
deploy/mailcow.sh
View file @
08ae8cc3
...
...
@@ -32,14 +32,11 @@ mailcow_deploy() {
fi
_savedeployconf DEPLOY_MAILCOW_PATH
"
$DEPLOY_MAILCOW_PATH
"
[
-n
"
$DEPLOY_MAILCOW_RELOAD
"
]
&&
_savedeployconf DEPLOY_MAILCOW_RELOAD
"
$DEPLOY_MAILCOW_RELOAD
"
#Tests if _ssl_path is the mailcow root directory.
_ssl_path
=
"
$DEPLOY_MAILCOW_PATH
"
if
[
-f
"
$DEPLOY_MAILCOW_PATH
/generate_config.sh"
]
;
then
_ssl_path
=
"
$DEPLOY_MAILCOW_PATH
/data/assets/ssl/"
else
_ssl_path
=
"
$DEPLOY_MAILCOW_PATH
"
fi
if
[
!
-d
"
$_ssl_path
"
]
;
then
...
...
@@ -48,13 +45,15 @@ mailcow_deploy() {
fi
# ECC or RSA
if
_isEccKey
"
$Le_Keylength
"
;
then
length
=
$(
_readdomainconf Le_Keylength
)
if
_isEccKey
"
$length
"
;
then
_info
"ECC key type detected"
_cert_name_prefix
=
"ecdsa-"
else
_info
"RSA key type detected"
_cert_name_prefix
=
""
fi
_info
"Copying key and cert"
_real_key
=
"
$_ssl_path
/
${
_cert_name_prefix
}
key.pem"
if
!
cat
"
$_ckey
"
>
"
$_real_key
"
;
then
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment