mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-11-10 00:11:45 +00:00
Update ssh.sh
This commit is contained in:
parent
20d23fcb92
commit
613475ac26
@ -237,8 +237,8 @@ then rm -rf \"\$fn\"; echo \"Backup \$fn deleted as older than 180 days\"; fi; d
|
|||||||
# if filename is same as previous file then append.
|
# if filename is same as previous file then append.
|
||||||
_pipe=">>"
|
_pipe=">>"
|
||||||
_local_cert_file=$(_mktemp)
|
_local_cert_file=$(_mktemp)
|
||||||
cat $_ckey > $_local_cert_file
|
cat "$_ckey" > "$_local_cert_file"
|
||||||
cat $_ccert >> $_local_cert_file
|
cat "$_ccert" >> "$_local_cert_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.
|
||||||
_cmdstr="$_cmdstr cp $Le_Deploy_ssh_certfile $_backupdir >/dev/null;"
|
_cmdstr="$_cmdstr cp $Le_Deploy_ssh_certfile $_backupdir >/dev/null;"
|
||||||
@ -344,15 +344,15 @@ then rm -rf \"\$fn\"; echo \"Backup \$fn deleted as older than 180 days\"; fi; d
|
|||||||
_pipe=">>"
|
_pipe=">>"
|
||||||
_local_full_file=$(_mktemp)
|
_local_full_file=$(_mktemp)
|
||||||
if [ "$Le_Deploy_ssh_fullchain" = "$Le_Deploy_ssh_keyfile" ] ; then
|
if [ "$Le_Deploy_ssh_fullchain" = "$Le_Deploy_ssh_keyfile" ] ; then
|
||||||
cat $_ckey >> $_local_full_file
|
cat "$_ckey" >> "$_local_full_file"
|
||||||
fi
|
fi
|
||||||
if [ "$Le_Deploy_ssh_fullchain" = "$Le_Deploy_ssh_certfile" ]; then
|
if [ "$Le_Deploy_ssh_fullchain" = "$Le_Deploy_ssh_certfile" ]; then
|
||||||
cat $_ccert >> $_local_full_file
|
cat "$_ccert" >> "$_local_full_file"
|
||||||
fi
|
fi
|
||||||
if [ "$Le_Deploy_ssh_fullchain" = "$Le_Deploy_ssh_cafile" ]; then
|
if [ "$Le_Deploy_ssh_fullchain" = "$Le_Deploy_ssh_cafile" ]; then
|
||||||
cat $_cca >> $_local_full_file
|
cat "$_cca" >> "$_local_full_file"
|
||||||
fi
|
fi
|
||||||
cat $_cfullchain >> $_local_full_file
|
cat "$_cfullchain" >> "$_local_full_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.
|
||||||
@ -390,13 +390,13 @@ then rm -rf \"\$fn\"; echo \"Backup \$fn deleted as older than 180 days\"; fi; d
|
|||||||
# cleanup local files if any
|
# cleanup local files if any
|
||||||
|
|
||||||
if [ -n "$_local_cert_file" ]; then
|
if [ -n "$_local_cert_file" ]; then
|
||||||
rm $_local_cert_file > /dev/null 1>&2
|
rm "$_local_cert_file" > /dev/null 1>&2
|
||||||
fi
|
fi
|
||||||
if [ -n "$_local_ca_file" ]; then
|
if [ -n "$_local_ca_file" ]; then
|
||||||
rm $_local_ca_file > /dev/null 1>&2
|
rm "$_local_ca_file" > /dev/null 1>&2
|
||||||
fi
|
fi
|
||||||
if [ -n "$_local_full_file" ]; then
|
if [ -n "$_local_full_file" ]; then
|
||||||
rm $_local_full_file > /dev/null 1>&2
|
rm "$_local_full_file" > /dev/null 1>&2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user