Using IsPublicDashboard in DisablePublicDashboard func
parent
295fd44a38
commit
162665b115
|
@ -349,8 +349,7 @@ func EnablePublicDashboard(InternetURL string) bool {
|
||||||
|
|
||||||
func DisablePublicDashboard() bool {
|
func DisablePublicDashboard() bool {
|
||||||
envFilePath := utils.GetPath("apiPath") + myEdgeAppServiceEnvFilename
|
envFilePath := utils.GetPath("apiPath") + myEdgeAppServiceEnvFilename
|
||||||
_, err := godotenv.Read(envFilePath)
|
if !IsPublicDashboard() {
|
||||||
if err != nil {
|
|
||||||
log.Println("myedge.app environment file for the dashboard / api not found. No need to delete.")
|
log.Println("myedge.app environment file for the dashboard / api not found. No need to delete.")
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
@ -364,7 +363,7 @@ func DisablePublicDashboard() bool {
|
||||||
func IsPublicDashboard() bool {
|
func IsPublicDashboard() bool {
|
||||||
envFilePath := utils.GetPath("apiPath") + myEdgeAppServiceEnvFilename
|
envFilePath := utils.GetPath("apiPath") + myEdgeAppServiceEnvFilename
|
||||||
_, err := godotenv.Read(envFilePath)
|
_, err := godotenv.Read(envFilePath)
|
||||||
return err != nil
|
return err == nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func buildFrameworkContainers() {
|
func buildFrameworkContainers() {
|
||||||
|
|
Loading…
Reference in New Issue