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
4cda5477
Commit
4cda5477
authored
Aug 30, 2021
by
fradev
Browse files
Update ssh.sh
SC2086 and SC2215
parent
613475ac
Changes
1
Show whitespace changes
Inline
Side-by-side
deploy/ssh.sh
View file @
4cda5477
...
@@ -251,7 +251,7 @@ then rm -rf \"\$fn\"; echo \"Backup \$fn deleted as older than 180 days\"; fi; d
...
@@ -251,7 +251,7 @@ then rm -rf \"\$fn\"; echo \"Backup \$fn deleted as older than 180 days\"; fi; d
fi
fi
if
[
"
$Le_Deploy_ssh_use_scp
"
=
"yes"
]
;
then
if
[
"
$Le_Deploy_ssh_use_scp
"
=
"yes"
]
;
then
if
-n
$_local_cert_file
;
then
if
[
-n
"
$_local_cert_file
"
]
;
then
if
!
_scp_remote_cmd
"
$_local_cert_file
"
"
$Le_Deploy_ssh_certfile
"
;
then
if
!
_scp_remote_cmd
"
$_local_cert_file
"
"
$Le_Deploy_ssh_certfile
"
;
then
return
$_err_code
return
$_err_code
fi
fi
...
@@ -287,13 +287,13 @@ then rm -rf \"\$fn\"; echo \"Backup \$fn deleted as older than 180 days\"; fi; d
...
@@ -287,13 +287,13 @@ then rm -rf \"\$fn\"; echo \"Backup \$fn deleted as older than 180 days\"; fi; d
_pipe
=
">>"
_pipe
=
">>"
_local_ca_file
=
$(
_mktemp
)
_local_ca_file
=
$(
_mktemp
)
if
[
"
$Le_Deploy_ssh_cafile
"
=
"
$Le_Deploy_ssh_keyfile
"
]
;
then
if
[
"
$Le_Deploy_ssh_cafile
"
=
"
$Le_Deploy_ssh_keyfile
"
]
;
then
cat
$_ckey
>>
$_local_ca_file
cat
"
$_ckey
"
>>
"
$_local_ca_file
"
fi
fi
if
[
"
$Le_Deploy_ssh_cafile
"
=
"
$Le_Deploy_ssh_certfile
"
]
;
then
if
[
"
$Le_Deploy_ssh_cafile
"
=
"
$Le_Deploy_ssh_certfile
"
]
;
then
cat
$_ccert
>>
$_local_ca_file
cat
"
$_ccert
"
>>
"
$_local_ca_file
"
fi
fi
cat
$_cca
>>
$_local_ca_file
cat
"
$_cca
"
>>
"
$_local_ca_file
"
elif
[
"
$Le_Deploy_ssh_backup
"
=
"yes"
]
;
then
elif
[
"
$Le_Deploy_ssh_backup
"
=
"yes"
]
;
then
# backup file we are about to overwrite.
# backup file we are about to overwrite.
...
@@ -307,7 +307,7 @@ then rm -rf \"\$fn\"; echo \"Backup \$fn deleted as older than 180 days\"; fi; d
...
@@ -307,7 +307,7 @@ then rm -rf \"\$fn\"; echo \"Backup \$fn deleted as older than 180 days\"; fi; d
fi
fi
if
[
"
$Le_Deploy_ssh_use_scp
"
=
"yes"
]
;
then
if
[
"
$Le_Deploy_ssh_use_scp
"
=
"yes"
]
;
then
if
-n
$_local_ca_file
;
then
if
[
-n
"
$_local_ca_file
"
]
;
then
if
!
_scp_remote_cmd
"
$_local_ca_file
"
"
$Le_Deploy_ssh_cafile
"
;
then
if
!
_scp_remote_cmd
"
$_local_ca_file
"
"
$Le_Deploy_ssh_cafile
"
;
then
return
$_err_code
return
$_err_code
fi
fi
...
@@ -366,7 +366,7 @@ then rm -rf \"\$fn\"; echo \"Backup \$fn deleted as older than 180 days\"; fi; d
...
@@ -366,7 +366,7 @@ then rm -rf \"\$fn\"; echo \"Backup \$fn deleted as older than 180 days\"; fi; d
fi
fi
if
[
"
$Le_Deploy_ssh_use_scp
"
=
"yes"
]
;
then
if
[
"
$Le_Deploy_ssh_use_scp
"
=
"yes"
]
;
then
if
-n
$_local_full_file
;
then
if
[
-n
"
$_local_full_file
"
]
;
then
if
!
_scp_remote_cmd
"
$_local_full_file
"
"
$Le_Deploy_ssh_fullchain
"
;
then
if
!
_scp_remote_cmd
"
$_local_full_file
"
"
$Le_Deploy_ssh_fullchain
"
;
then
return
$_err_code
return
$_err_code
fi
fi
...
...
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