Fix certbot renew bug.

This commit is contained in:
BoHung Chiu 2022-09-17 10:10:58 +08:00
parent 13da5a8c25
commit c80e6ecd92
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ namespace :create_site do
if site_constructs.count > 1
auto_update_infos("Generating single cert for multiple domain names...")
end
exec_ssh_command_by_sudo_and_see_output(ssh,"sudo -p 'sudo password:' #{certbot_path} --nginx #{domain_names.map{|d| "-d " + d}.join(" ")} -n --#{redirect_to_https ? 'redirect' : 'no-redirect'}",true,false)
exec_ssh_command_by_sudo_and_see_output(ssh,"sudo -p 'sudo password:' #{certbot_path} --nginx #{domain_names.map{|d| "-d " + d}.join(" ")} -n --#{redirect_to_https ? 'redirect' : 'no-redirect'} --expand",true,false)
site_constructs.each do |site_construct|
@site_construct = site_construct
auto_update_infos("Checking cert for #{site_construct.site_name}...")