From b0a6405b8eb4f309bee1bbf8824d6fbe5ab05df2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Thu, 9 Nov 2023 19:53:40 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E9=9D=A2=E6=9D=BF?= =?UTF-8?q?=E5=85=A5=E5=8F=A3=E8=AE=BE=E7=BD=AE=E4=B8=8D=E7=94=9F=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/http/controllers/setting_controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/http/controllers/setting_controller.go b/app/http/controllers/setting_controller.go index 3d4fb44054..b174b56bc5 100644 --- a/app/http/controllers/setting_controller.go +++ b/app/http/controllers/setting_controller.go @@ -138,7 +138,7 @@ func (r *SettingController) Update(ctx http.Context) http.Response { oldEntrance := tools.Exec(`cat /www/panel/panel.conf | grep APP_ENTRANCE | awk -F '=' '{print $2}' | tr -d '\n'`) entrance := cast.ToString(updateRequest.Entrance) if oldEntrance != entrance { - tools.Exec("sed -i 's/APP_ENTRANCE=" + oldEntrance + "/APP_ENTRANCE=" + entrance + "/g' /www/panel/panel.conf") + tools.Exec("sed -i 's!APP_ENTRANCE=" + oldEntrance + "!APP_ENTRANCE=" + entrance + "!g' /www/panel/panel.conf") } if oldPort != port || oldEntrance != entrance {