Fix bug.
This commit is contained in:
parent
464f81166d
commit
f48fd51b21
|
@ -135,7 +135,7 @@ else
|
||||||
sudo_command bash -l -c "cd $org_ssl_dir && ln -s ../../archive/$real_domain/*.pem ."
|
sudo_command bash -l -c "cd $org_ssl_dir && ln -s ../../archive/$real_domain/*.pem ."
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
sudo_command cp -r $new_ssl_dir/renewal/* /etc/letsencrypt/renewal/.
|
sudo_command cp -r ssl_files/renewal/* /etc/letsencrypt/renewal/.
|
||||||
if [[ -e /etc/letsencrypt/renewal/$real_domain.conf ]]; then #Fix certbot account
|
if [[ -e /etc/letsencrypt/renewal/$real_domain.conf ]]; then #Fix certbot account
|
||||||
letsencrypt_server_name=`sudo_command ls /etc/letsencrypt/accounts/|xargs|awk '{print $1}'`
|
letsencrypt_server_name=`sudo_command ls /etc/letsencrypt/accounts/|xargs|awk '{print $1}'`
|
||||||
if [[ ! -z "$letsencrypt_server_name" ]]; then
|
if [[ ! -z "$letsencrypt_server_name" ]]; then
|
||||||
|
|
|
@ -139,7 +139,7 @@ else
|
||||||
sudo_command bash -l -c "cd $org_ssl_dir && ln -s ../../archive/$real_domain/*.pem ."
|
sudo_command bash -l -c "cd $org_ssl_dir && ln -s ../../archive/$real_domain/*.pem ."
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
sudo_command cp -r $new_ssl_dir/renewal/* /etc/letsencrypt/renewal/.
|
sudo_command cp -r ssl_files/renewal/* /etc/letsencrypt/renewal/.
|
||||||
if [[ -e /etc/letsencrypt/renewal/$real_domain.conf ]]; then #Fix certbot account
|
if [[ -e /etc/letsencrypt/renewal/$real_domain.conf ]]; then #Fix certbot account
|
||||||
letsencrypt_server_name=`sudo_command ls /etc/letsencrypt/accounts/|xargs|awk '{print $1}'`
|
letsencrypt_server_name=`sudo_command ls /etc/letsencrypt/accounts/|xargs|awk '{print $1}'`
|
||||||
if [[ ! -z "$letsencrypt_server_name" ]]; then
|
if [[ ! -z "$letsencrypt_server_name" ]]; then
|
||||||
|
|
Loading…
Reference in New Issue