mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-17 22:30:25 +08:00
安装过程中可以选择自动在本机安装MySQL
This commit is contained in:
@@ -9,6 +9,7 @@ import (
|
||||
"github.com/iwind/TeaGo/maps"
|
||||
"net"
|
||||
"os"
|
||||
"runtime"
|
||||
"strings"
|
||||
"time"
|
||||
)
|
||||
@@ -63,10 +64,11 @@ func (this *DetectDBAction) RunPost(params struct{}) {
|
||||
}
|
||||
|
||||
this.Data["localDB"] = maps.Map{
|
||||
"host": localHost,
|
||||
"port": localPort,
|
||||
"username": localUsername,
|
||||
"password": localPassword,
|
||||
"host": localHost,
|
||||
"port": localPort,
|
||||
"username": localUsername,
|
||||
"password": localPassword,
|
||||
"canInstall": runtime.GOOS == "linux" && runtime.GOARCH == "amd64" && os.Getgid() == 0,
|
||||
}
|
||||
|
||||
this.Success()
|
||||
|
||||
Reference in New Issue
Block a user