2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 16:10:59 +08:00

fix: 修复面板入口设置不生效

This commit is contained in:
耗子
2023-11-09 19:53:40 +08:00
parent 43f12873c0
commit b0a6405b8e

View File

@@ -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 {