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
ff60dc4d
Commit
ff60dc4d
authored
Feb 05, 2017
by
David Kerr
Browse files
More Travis issues !!!
parent
62e7d904
Changes
1
Show whitespace changes
Inline
Side-by-side
deploy/sshdeploy.sh
View file @
ff60dc4d
...
@@ -36,6 +36,14 @@ sshdeploy_deploy() {
...
@@ -36,6 +36,14 @@ sshdeploy_deploy() {
_homedir
=
"
$_homedir
/.acme_ssh_deploy"
_homedir
=
"
$_homedir
/.acme_ssh_deploy"
_backupdir
=
"
$_homedir
/certs-backup-
$(
date
+%Y%m%d%H%M%S
)
"
_backupdir
=
"
$_homedir
/certs-backup-
$(
date
+%Y%m%d%H%M%S
)
"
if
[
-z
"
$DOMAIN_CONF
"
]
;
then
DOMAIN_CONF
=
""
fi
if
[
!
-f
"
$DOMAIN_CONF
"
]
;
then
_err
"
$DOMAIN_CONF
does not exist."
return
1
fi
.
"
$DOMAIN_CONF
"
.
"
$DOMAIN_CONF
"
_debug _cdomain
"
$_cdomain
"
_debug _cdomain
"
$_cdomain
"
...
@@ -163,7 +171,7 @@ sshdeploy_deploy() {
...
@@ -163,7 +171,7 @@ sshdeploy_deploy() {
_savedomainconf Le_Deploy_ssh_service_start
"
$Le_Deploy_ssh_service_start
"
_savedomainconf Le_Deploy_ssh_service_start
"
$Le_Deploy_ssh_service_start
"
fi
fi
if
[
-n
"
$Le_Deploy_ssh_service_start
"
]
;
then
if
[
-n
"
$Le_Deploy_ssh_service_start
"
]
;
then
if
[
-n
"
$Le_Deploy_ssh_service_stop
"
]
||
[
-n
"
$Le_Deploy_ssh_remote_cmd
"
]
;
then
if
[
-n
"
$Le_Deploy_ssh_service_stop
"
]
||
[
-n
"
$Le_Deploy_ssh_remote_cmd
"
]
;
then
_cmdstr
=
"
$_cmdstr
sleep 2 ;"
_cmdstr
=
"
$_cmdstr
sleep 2 ;"
fi
fi
_cmdstr
=
"
$_cmdstr
$Le_Deploy_ssh_service_start
;"
_cmdstr
=
"
$_cmdstr
$Le_Deploy_ssh_service_start
;"
...
...
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