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
7573e560
Unverified
Commit
7573e560
authored
May 03, 2018
by
Daniel Watrous
Committed by
GitHub
May 03, 2018
Browse files
Add conditional check to ensure path is provided
parent
c8bc155c
Changes
1
Hide whitespace changes
Inline
Side-by-side
deploy/haproxy.sh
View file @
7573e560
...
@@ -23,7 +23,13 @@ haproxy_deploy() {
...
@@ -23,7 +23,13 @@ haproxy_deploy() {
# combine the key and fullchain into a single pem and install
# combine the key and fullchain into a single pem and install
_savedomainconf DEPLOY_HAPROXY_PEM_PATH
"
$DEPLOY_HAPROXY_PEM_PATH
"
_savedomainconf DEPLOY_HAPROXY_PEM_PATH
"
$DEPLOY_HAPROXY_PEM_PATH
"
_pem_full_path
=
"
$DEPLOY_HAPROXY_PEM_PATH
/
$_cdomain
.pem"
_pem_path
=
"
${
DEPLOY_HAPROXY_PEM_PATH
}
"
if
[
-z
"
$_pem_path
"
]
;
then
_err
"Path to save PEM file not found. Please define DEPLOY_HAPROXY_PEM_PATH."
return
1
fi
_pem_full_path
=
"
$_pem_path
/
$_cdomain
.pem"
_info
"Full path to PEM
$_pem_full_path
"
_info
"Full path to PEM
$_pem_full_path
"
cat
"
$_cfullchain
"
"
$_ckey
"
>
"
$_pem_full_path
"
cat
"
$_cfullchain
"
"
$_ckey
"
>
"
$_pem_full_path
"
...
...
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