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
554e083f
Commit
554e083f
authored
Mar 11, 2020
by
dkerr64
Browse files
For MULTI_CALL default to undefined, deleting entry in config file if set to "no"
parent
dada57e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
deploy/ssh.sh
View file @
554e083f
...
@@ -20,8 +20,8 @@
...
@@ -20,8 +20,8 @@
# export DEPLOY_SSH_CAFILE="/etc/stunnel/uca.pem"
# export DEPLOY_SSH_CAFILE="/etc/stunnel/uca.pem"
# export DEPLOY_SSH_FULLCHAIN=""
# export DEPLOY_SSH_FULLCHAIN=""
# export DEPLOY_SSH_REMOTE_CMD="/etc/init.d/stunnel.sh restart"
# export DEPLOY_SSH_REMOTE_CMD="/etc/init.d/stunnel.sh restart"
# export DEPLOY_SSH_BACKUP="" # yes or no, default to yes
# export DEPLOY_SSH_BACKUP="" # yes or no, default to yes
or previously saved value
# export DEPLOY_SSH_MULTI_CALL="" # yes or no, default to no
# export DEPLOY_SSH_MULTI_CALL="" # yes or no, default to no
or previously saved value
#
#
######## Public functions #####################
######## Public functions #####################
...
@@ -76,7 +76,7 @@ ssh_deploy() {
...
@@ -76,7 +76,7 @@ ssh_deploy() {
Le_Deploy_ssh_cmd
=
"ssh -T"
Le_Deploy_ssh_cmd
=
"ssh -T"
fi
fi
# BACKUP is optional. If not provided then default to yes
# BACKUP is optional. If not provided then default to
previously saved value or
yes
.
if
[
"
$DEPLOY_SSH_BACKUP
"
=
"no"
]
;
then
if
[
"
$DEPLOY_SSH_BACKUP
"
=
"no"
]
;
then
Le_Deploy_ssh_backup
=
"no"
Le_Deploy_ssh_backup
=
"no"
elif
[
-z
"
$Le_Deploy_ssh_backup
"
]
||
[
"
$DEPLOY_SSH_BACKUP
"
=
"yes"
]
;
then
elif
[
-z
"
$Le_Deploy_ssh_backup
"
]
||
[
"
$DEPLOY_SSH_BACKUP
"
=
"yes"
]
;
then
...
@@ -84,13 +84,15 @@ ssh_deploy() {
...
@@ -84,13 +84,15 @@ ssh_deploy() {
fi
fi
_savedomainconf Le_Deploy_ssh_backup
"
$Le_Deploy_ssh_backup
"
_savedomainconf Le_Deploy_ssh_backup
"
$Le_Deploy_ssh_backup
"
# MULTI_CALL is optional. If not provided then default to no
# MULTI_CALL is optional. If not provided then default to previously saved
# value (which may be undefined... equivalent to "no").
if
[
"
$DEPLOY_SSH_MULTI_CALL
"
=
"yes"
]
;
then
if
[
"
$DEPLOY_SSH_MULTI_CALL
"
=
"yes"
]
;
then
Le_Deploy_ssh_multi_call
=
"yes"
Le_Deploy_ssh_multi_call
=
"yes"
elif
[
-z
"
$Le_Deploy_ssh_multi_call
"
]
||
[
"
$DEPLOY_SSH_MULTI_CALL
"
=
"no"
]
;
then
_savedomainconf Le_Deploy_ssh_multi_call
"
$Le_Deploy_ssh_multi_call
"
Le_Deploy_ssh_multi_call
=
"no"
elif
[
"
$DEPLOY_SSH_MULTI_CALL
"
=
"no"
]
;
then
Le_Deploy_ssh_multi_call
=
""
_cleardomainconf Le_Deploy_ssh_multi_call
fi
fi
_savedomainconf Le_Deploy_ssh_multi_call
"
$Le_Deploy_ssh_multi_call
"
_info
"Deploy certificates to remote server
$Le_Deploy_ssh_user
@
$Le_Deploy_ssh_server
"
_info
"Deploy certificates to remote server
$Le_Deploy_ssh_user
@
$Le_Deploy_ssh_server
"
if
[
"
$Le_Deploy_ssh_multi_call
"
=
"yes"
]
;
then
if
[
"
$Le_Deploy_ssh_multi_call
"
=
"yes"
]
;
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