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
32b62d6d
Commit
32b62d6d
authored
Dec 07, 2020
by
neil
Browse files
fix
parent
a0c2d312
Changes
1
Hide whitespace changes
Inline
Side-by-side
deploy/mailcow.sh
View file @
32b62d6d
...
...
@@ -27,11 +27,11 @@ mailcow_deploy() {
return
1
fi
#Tests if _ssl_path is the mailcow root directory.
#Tests if _ssl_path is the mailcow root directory.
if
[
-f
"
${
_mailcow_path
}
/generate_config.sh"
]
;
then
_ssl_path
=
"
${
_mailcow_path
}
/data/assets/ssl/"
else
_ssl_path
=
"
${
_mailcow_path
}
"
_ssl_path
=
"
${
_mailcow_path
}
"
fi
if
[
!
-d
"
$_ssl_path
"
]
;
then
...
...
@@ -41,17 +41,16 @@ mailcow_deploy() {
# ECC or RSA
if
[
-z
"
${
Le_Keylength
}
"
]
;
then
Le_Keylength
=
""
Le_Keylength
=
""
fi
if
_isEccKey
"
${
Le_Keylength
}
"
;
then
_info
"ECC key type detected"
_cert_type
=
"ecdsa"
_cert_name_prefix
=
"ecdsa-"
_info
"ECC key type detected"
_cert_type
=
"ecdsa"
_cert_name_prefix
=
"ecdsa-"
else
_info
"RSA key type detected"
_cert_type
=
"rsa"
_cert_name_prefix
=
""
_info
"RSA key type detected"
_cert_type
=
"rsa"
_cert_name_prefix
=
""
fi
_info
"Copying key and cert"
_real_key
=
"
$_ssl_path
/
${
_cert_name_prefix
}
key.pem"
...
...
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