Browse Source

Merge 4ac3ed46bc into 8cbf31be38

pull/299/merge
Oleg Broytman 6 years ago
committed by GitHub
parent
commit
506b224691
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      getssl

+ 4
- 2
getssl View File

@ -518,10 +518,12 @@ copy_file_to_location() { # copies a file, using scp, sftp or ftp if required.
error_exit "problem copying file to the server using scp.
scp $from ${to:4}"
fi
servername=$(echo "$to" | awk -F":" '{print $2}')
tofile=$(echo "$to" | awk -F":" '{print $3}')
# shellcheck disable=SC2029
ssh "$servername" "chmod a+r $tofile"
debug "userid $TOKEN_USER_ID"
if [[ "$cert" == "challenge token" ]] && [[ ! -z "$TOKEN_USER_ID" ]]; then
servername=$(echo "$to" | awk -F":" '{print $2}')
tofile=$(echo "$to" | awk -F":" '{print $3}')
debug "servername $servername"
debug "file $tofile"
# shellcheck disable=SC2029


Loading…
Cancel
Save