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

refactor: packages to pkg

This commit is contained in:
耗子
2023-07-20 01:06:49 +08:00
parent ec7138ae2a
commit 5ce65653ad
33 changed files with 260 additions and 260 deletions

View File

@@ -3,7 +3,7 @@ package controllers
import (
"github.com/goravel/framework/contracts/http"
"github.com/goravel/framework/facades"
"panel/packages/helper"
"panel/pkg/tools"
"panel/app/models"
"panel/app/services"
@@ -70,9 +70,9 @@ func (r *SettingController) Save(ctx http.Context) {
return
}
oldPort := helper.ExecShell("cat /www/panel/panel.conf | grep APP_PORT | awk -F '=' '{print $2}'")
oldPort := tools.ExecShell("cat /www/panel/panel.conf | grep APP_PORT | awk -F '=' '{print $2}'")
if oldPort != port {
helper.ExecShell("sed -i 's/APP_PORT=" + oldPort + "/APP_PORT=" + port + "/g' /www/panel/panel.conf")
tools.ExecShell("sed -i 's/APP_PORT=" + oldPort + "/APP_PORT=" + port + "/g' /www/panel/panel.conf")
}
err = r.setting.Set(models.SettingKeyBackupPath, backupPath)
if err != nil {