Skip to content

Commit

Permalink
fix: 修复面板入口设置不生效
Browse files Browse the repository at this point in the history
  • Loading branch information
devhaozi committed Nov 9, 2023
1 parent 43f1287 commit b0a6405
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/http/controllers/setting_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit b0a6405

Please sign in to comment.