This commit is contained in:
BoHung Chiu 2022-09-19 11:03:16 +08:00
parent c80e6ecd92
commit 2159c6d98a
1 changed files with 1 additions and 1 deletions

View File

@ -197,7 +197,7 @@ class Admin::SitePanelController < OrbitAdminController
def install_certbot def install_certbot
extra_text = "" extra_text = ""
if params[:server_name].present? if params[:server_name].present?
extra_text = "[#{params[:server_name].gsub(/[\(\)\[\]]/){|ff| "\\"+ff }}]" extra_text = "['#{params[:server_name].gsub(/[\(\)\[\]]/){|ff| "\\"+ff }}']"
end end
Thread.new do Thread.new do
system("bundle exec rake create_site:install_certbot#{extra_text}") system("bundle exec rake create_site:install_certbot#{extra_text}")