From 2159c6d98a78aac000bddb5d1aa80d8aa3e1c630 Mon Sep 17 00:00:00 2001 From: bohung Date: Mon, 19 Sep 2022 11:03:16 +0800 Subject: [PATCH] Fix bug. --- app/controllers/admin/site_panel_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}")