Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
a78a09f5
Commit
a78a09f5
authored
May 14, 2020
by
PM Extra
Browse files
Support multiple servers for SSH deployment.
parent
59fd48cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
deploy/ssh.sh
View file @
a78a09f5
...
@@ -33,10 +33,7 @@ ssh_deploy() {
...
@@ -33,10 +33,7 @@ ssh_deploy() {
_ccert
=
"
$3
"
_ccert
=
"
$3
"
_cca
=
"
$4
"
_cca
=
"
$4
"
_cfullchain
=
"
$5
"
_cfullchain
=
"
$5
"
_err_code
=
0
_deploy_ssh_servers
=
""
_cmdstr
=
""
_backupprefix
=
""
_backupdir
=
""
if
[
-f
"
$DOMAIN_CONF
"
]
;
then
if
[
-f
"
$DOMAIN_CONF
"
]
;
then
# shellcheck disable=SC1090
# shellcheck disable=SC1090
...
@@ -102,6 +99,18 @@ ssh_deploy() {
...
@@ -102,6 +99,18 @@ ssh_deploy() {
_cleardomainconf Le_Deploy_ssh_multi_call
_cleardomainconf Le_Deploy_ssh_multi_call
fi
fi
_deploy_ssh_servers
=
$Le_Deploy_ssh_server
for
Le_Deploy_ssh_server
in
$_deploy_ssh_servers
;
do
_ssh_deploy
done
}
_ssh_deploy
()
{
_err_code
=
0
_cmdstr
=
""
_backupprefix
=
""
_backupdir
=
""
_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
_info
"Using MULTI_CALL mode... Required commands sent in multiple calls to remote host"
_info
"Using MULTI_CALL mode... Required commands sent in multiple calls to remote host"
...
...
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