安装过程中可以选择自动在本机安装MySQL

This commit is contained in:
刘祥超
2023-03-11 18:52:40 +08:00
parent 2546676f6a
commit 7e85555ba7
22 changed files with 1287 additions and 164 deletions

View File

@@ -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()