This commit is contained in:
BoHung Chiu 2022-09-25 15:56:23 +08:00
parent 97ba0265a8
commit 464f81166d
2 changed files with 2 additions and 2 deletions

View File

@ -93,7 +93,7 @@ else
org_ssl_dir=`dirname $ssl_certificate_file`
new_ssl_dir="ssl_files/$(basename $org_ssl_dir)"
$ssh_command "$remote_sudo_command cp -r -f -L $org_ssl_dir $root_path/ssl_files/."
certbot_file_idx=`$ssh_command "basename $($remote_sudo_command readlink /etc/letsencrypt/live/$real_domain/cert.pem)|sed -E 's/cert([^.]+)\.pem/\1/g'|xargs"`
certbot_file_idx=`$ssh_command "$remote_sudo_command readlink /etc/letsencrypt/live/$real_domain/cert.pem"|xargs basename|sed -E 's/cert([^.]+)\.pem/\1/g'|xargs`
else
$ssh_command "$remote_sudo_command cp -f $ssl_certificate_file $root_path/ssl_files/."
$ssh_command "$remote_sudo_command cp -f $ssl_certificate_key_file $root_path/ssl_files/."

View File

@ -97,7 +97,7 @@ else
org_ssl_dir=`dirname $ssl_certificate_file`
new_ssl_dir="ssl_files/$(basename $org_ssl_dir)"
$ssh_command "$remote_sudo_command cp -r -f -L $org_ssl_dir $root_path/ssl_files/."
certbot_file_idx=`$ssh_command "basename $($remote_sudo_command readlink /etc/letsencrypt/live/$real_domain/cert.pem)|sed -E 's/cert([^.]+)\.pem/\1/g'|xargs"`
certbot_file_idx=`$ssh_command "$remote_sudo_command readlink /etc/letsencrypt/live/$real_domain/cert.pem"|xargs basename|sed -E 's/cert([^.]+)\.pem/\1/g'|xargs`
else
$ssh_command "$remote_sudo_command cp -f $ssl_certificate_file $root_path/ssl_files/."
$ssh_command "$remote_sudo_command cp -f $ssl_certificate_key_file $root_path/ssl_files/."