This commit is contained in:
BoHung Chiu 2022-09-24 12:13:43 +08:00
parent 2719334953
commit 89bbbb1b63
2 changed files with 2 additions and 2 deletions

View File

@ -91,7 +91,7 @@ else
$ssh_command "mkdir -p $root_path/ssl_files/renewal" $ssh_command "mkdir -p $root_path/ssl_files/renewal"
$ssh_command "$remote_sudo_command cp -L /etc/letsencrypt/renewal/$real_domain.conf $root_path/ssl_files/renewal/." $ssh_command "$remote_sudo_command cp -L /etc/letsencrypt/renewal/$real_domain.conf $root_path/ssl_files/renewal/."
org_ssl_dir=`dirname $ssl_certificate_file` org_ssl_dir=`dirname $ssl_certificate_file`
new_ssl_dir="ssl_files/$(basename org_ssl_dir)" 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/." $ssh_command "$remote_sudo_command cp -r -f -L $org_ssl_dir $root_path/ssl_files/."
else else
$ssh_command "$remote_sudo_command cp -f $ssl_certificate_file $root_path/ssl_files/." $ssh_command "$remote_sudo_command cp -f $ssl_certificate_file $root_path/ssl_files/."

View File

@ -95,7 +95,7 @@ else
$ssh_command "mkdir -p $root_path/ssl_files/renewal" $ssh_command "mkdir -p $root_path/ssl_files/renewal"
$ssh_command "$remote_sudo_command cp -L /etc/letsencrypt/renewal/$real_domain.conf $root_path/ssl_files/renewal/." $ssh_command "$remote_sudo_command cp -L /etc/letsencrypt/renewal/$real_domain.conf $root_path/ssl_files/renewal/."
org_ssl_dir=`dirname $ssl_certificate_file` org_ssl_dir=`dirname $ssl_certificate_file`
new_ssl_dir="ssl_files/$(basename org_ssl_dir)" 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/." $ssh_command "$remote_sudo_command cp -r -f -L $org_ssl_dir $root_path/ssl_files/."
else else
$ssh_command "$remote_sudo_command cp -f $ssl_certificate_file $root_path/ssl_files/." $ssh_command "$remote_sudo_command cp -f $ssl_certificate_file $root_path/ssl_files/."