diff --git a/app/controllers/admin/site_panel_controller.rb b/app/controllers/admin/site_panel_controller.rb index df43b64..384b82a 100644 --- a/app/controllers/admin/site_panel_controller.rb +++ b/app/controllers/admin/site_panel_controller.rb @@ -197,7 +197,7 @@ class Admin::SitePanelController < OrbitAdminController def install_certbot extra_text = "" if params[:server_name].present? - extra_text = "[#{params[:server_name].gsub(/[\(\)\[\]]/){|ff| "\\"+ff }}]" + extra_text = "['#{params[:server_name].gsub(/[\(\)\[\]]/){|ff| "\\"+ff }}']" end Thread.new do system("bundle exec rake create_site:install_certbot#{extra_text}")