This repository has been archived on 2026-07-29. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
GoEdgeAdmin/internal/setup/utils.go
T

24 lines
410 B
Go

package setup
import (
"github.com/TeaOSLab/EdgeAdmin/internal/configs"
)
var isConfigured bool
// IsConfigured 判断系统是否已经配置过
func IsConfigured() bool {
if isConfigured {
return true
}
_, err := configs.LoadAPIConfig()
isConfigured = err == nil
return isConfigured
}
// IsNewInstalled IsNew 检查是否新安装
func IsNewInstalled() bool {
return configs.IsNewInstalled()
}