mirror of
https://github.com/azukaar/Cosmos-Server.git
synced 2026-05-06 20:00:46 -05:00
[release] v0.16.0-unstable28
This commit is contained in:
@@ -919,7 +919,7 @@ func GetEnv(env []string, key string) string {
|
||||
return ""
|
||||
}
|
||||
|
||||
func isInsideContainer() {
|
||||
func IsInsideContainer() {
|
||||
if utils.IsInsideContainer {
|
||||
errD := Connect()
|
||||
if errD != nil {
|
||||
@@ -931,7 +931,7 @@ func isInsideContainer() {
|
||||
|
||||
if err == nil {
|
||||
// check image
|
||||
if String.Contains(container.Config.Image, "cosmos") {
|
||||
if strings.Contains(container.Config.Image, "cosmos") {
|
||||
utils.IsInsideContainer = true
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,6 @@ package docker
|
||||
|
||||
import (
|
||||
"github.com/azukaar/cosmos-server/src/utils"
|
||||
"os"
|
||||
"net/http"
|
||||
"fmt"
|
||||
"errors"
|
||||
|
||||
+1
-1
@@ -58,7 +58,7 @@ func main() {
|
||||
MigratePre013()
|
||||
MigratePre014()
|
||||
|
||||
docker.isInsideContainer()
|
||||
docker.IsInsideContainer()
|
||||
|
||||
docker.CheckPuppetDB()
|
||||
|
||||
|
||||
@@ -3,7 +3,6 @@ package main
|
||||
import (
|
||||
"net/http"
|
||||
"encoding/json"
|
||||
"os"
|
||||
"runtime"
|
||||
"bytes"
|
||||
"encoding/gob"
|
||||
|
||||
Reference in New Issue
Block a user