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
3812b275
"deps/vscode:/vscode.git/clone" did not exist on "e1c29434b2f79425a1d006d7dd6737dd1fbbcc15"
Commit
3812b275
authored
Feb 05, 2017
by
David Kerr
Browse files
Moving on to the next batch of travis errors.
parent
6c1561f4
Changes
1
Show whitespace changes
Inline
Side-by-side
deploy/sshdeploy.sh
View file @
3812b275
...
@@ -89,7 +89,7 @@ sshdeploy_deploy() {
...
@@ -89,7 +89,7 @@ sshdeploy_deploy() {
# backup file we are about to overwrite.
# backup file we are about to overwrite.
_cmdstr
=
"
$_cmdstr
cp
$Le_Deploy_ssh_keyfile
$_backupdir
;"
_cmdstr
=
"
$_cmdstr
cp
$Le_Deploy_ssh_keyfile
$_backupdir
;"
# copy new certificate into file.
# copy new certificate into file.
_cmdstr
=
"
$_cmdstr
echo
\"
$(
cat
$_ckey
)
\"
>
$Le_Deploy_ssh_keyfile
;"
_cmdstr
=
"
$_cmdstr
echo
\"
$(
cat
"
$_ckey
"
)
\"
>
$Le_Deploy_ssh_keyfile
;"
_info
"will copy private key to remote file
$Le_Deploy_ssh_keyfile
"
_info
"will copy private key to remote file
$Le_Deploy_ssh_keyfile
"
fi
fi
...
@@ -102,13 +102,13 @@ sshdeploy_deploy() {
...
@@ -102,13 +102,13 @@ sshdeploy_deploy() {
if
[
-n
"
$Le_Deploy_ssh_certfile
"
]
;
then
if
[
-n
"
$Le_Deploy_ssh_certfile
"
]
;
then
if
[
"
$Le_Deploy_ssh_certfile
"
=
"
$Le_Deploy_ssh_keyfile
"
]
;
then
if
[
"
$Le_Deploy_ssh_certfile
"
=
"
$Le_Deploy_ssh_keyfile
"
]
;
then
# if filename is same as that provided for private key then append.
# if filename is same as that provided for private key then append.
_cmdstr
=
"
$_cmdstr
echo
\"
$(
cat
$_ccert
)
\"
>>
$Le_Deploy_ssh_certfile
;"
_cmdstr
=
"
$_cmdstr
echo
\"
$(
cat
"
$_ccert
"
)
\"
>>
$Le_Deploy_ssh_certfile
;"
_info
"will append certificate to same file"
_info
"will append certificate to same file"
else
else
# backup file we are about to overwrite.
# backup file we are about to overwrite.
_cmdstr
=
"
$_cmdstr
cp
$Le_Deploy_ssh_certfile
$_backupdir
;"
_cmdstr
=
"
$_cmdstr
cp
$Le_Deploy_ssh_certfile
$_backupdir
;"
# copy new certificate into file.
# copy new certificate into file.
_cmdstr
=
"
$_cmdstr
echo
\"
$(
cat
$_ccert
)
\"
>
$Le_Deploy_ssh_certfile
;"
_cmdstr
=
"
$_cmdstr
echo
\"
$(
cat
"
$_ccert
"
)
\"
>
$Le_Deploy_ssh_certfile
;"
_info
"will copy certificate to remote file
$Le_Deploy_ssh_certfile
"
_info
"will copy certificate to remote file
$Le_Deploy_ssh_certfile
"
fi
fi
fi
fi
...
@@ -123,7 +123,7 @@ sshdeploy_deploy() {
...
@@ -123,7 +123,7 @@ sshdeploy_deploy() {
# backup file we are about to overwrite.
# backup file we are about to overwrite.
_cmdstr
=
"
$_cmdstr
cp
$Le_Deploy_ssh_cafile
$_backupdir
;"
_cmdstr
=
"
$_cmdstr
cp
$Le_Deploy_ssh_cafile
$_backupdir
;"
# copy new certificate into file.
# copy new certificate into file.
_cmdstr
=
"
$_cmdstr
echo
\"
$(
cat
$_cca
)
\"
>
$Le_Deploy_ssh_cafile
;"
_cmdstr
=
"
$_cmdstr
echo
\"
$(
cat
"
$_cca
"
)
\"
>
$Le_Deploy_ssh_cafile
;"
_info
"will copy CA file to remote file
$Le_Deploy_ssh_cafile
"
_info
"will copy CA file to remote file
$Le_Deploy_ssh_cafile
"
fi
fi
...
@@ -137,7 +137,7 @@ sshdeploy_deploy() {
...
@@ -137,7 +137,7 @@ sshdeploy_deploy() {
# backup file we are about to overwrite.
# backup file we are about to overwrite.
_cmdstr
=
"
$_cmdstr
cp
$Le_Deploy_ssh_fullchain
$_backupdir
;"
_cmdstr
=
"
$_cmdstr
cp
$Le_Deploy_ssh_fullchain
$_backupdir
;"
# copy new certificate into file.
# copy new certificate into file.
_cmdstr
=
"
$_cmdstr
echo
\"
$(
cat
$_cfullchain
)
\"
>
$Le_Deploy_ssh_fullchain
;"
_cmdstr
=
"
$_cmdstr
echo
\"
$(
cat
"
$_cfullchain
"
)
\"
>
$Le_Deploy_ssh_fullchain
;"
_info
"will copy full chain to remote file
$Le_Deploy_ssh_fullchain
"
_info
"will copy full chain to remote file
$Le_Deploy_ssh_fullchain
"
fi
fi
...
@@ -188,6 +188,8 @@ sshdeploy_deploy() {
...
@@ -188,6 +188,8 @@ sshdeploy_deploy() {
_debug
"Remote commands to execute:
$_cmdstr
"
_debug
"Remote commands to execute:
$_cmdstr
"
_info
"Submitting sequence of commands to remote server by ssh"
_info
"Submitting sequence of commands to remote server by ssh"
# quotations in bash cmd below intended. Squash travis spellcheck error
# shellcheck disable=SC2029
ssh
-T
"
$Le_Deploy_ssh_user
@
$Le_Deploy_ssh_url
"
bash
-c
"'
$_cmdstr
'"
ssh
-T
"
$Le_Deploy_ssh_user
@
$Le_Deploy_ssh_url
"
bash
-c
"'
$_cmdstr
'"
return
0
return
0
...
...
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