diff --git a/lib/tasks/change_site_cert.rake b/lib/tasks/change_site_cert.rake index bfb6312..147890c 100644 --- a/lib/tasks/change_site_cert.rake +++ b/lib/tasks/change_site_cert.rake @@ -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}...")