Fix certbot renew bug.
This commit is contained in:
parent
13da5a8c25
commit
c80e6ecd92
|
@ -43,7 +43,7 @@ namespace :create_site do
|
||||||
if site_constructs.count > 1
|
if site_constructs.count > 1
|
||||||
auto_update_infos("Generating single cert for multiple domain names...")
|
auto_update_infos("Generating single cert for multiple domain names...")
|
||||||
end
|
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_constructs.each do |site_construct|
|
||||||
@site_construct = site_construct
|
@site_construct = site_construct
|
||||||
auto_update_infos("Checking cert for #{site_construct.site_name}...")
|
auto_update_infos("Checking cert for #{site_construct.site_name}...")
|
||||||
|
|
Loading…
Reference in New Issue