[release] v0.16.0-unstable28

This commit is contained in:
Yann Stepienik
2024-09-11 19:39:39 +01:00
parent be3de33812
commit 2b5d16e815
4 changed files with 3 additions and 5 deletions
+2 -2
View File
@@ -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
}
}
-1
View File
@@ -2,7 +2,6 @@ package docker
import (
"github.com/azukaar/cosmos-server/src/utils"
"os"
"net/http"
"fmt"
"errors"
+1 -1
View File
@@ -58,7 +58,7 @@ func main() {
MigratePre013()
MigratePre014()
docker.isInsideContainer()
docker.IsInsideContainer()
docker.CheckPuppetDB()
-1
View File
@@ -3,7 +3,6 @@ package main
import (
"net/http"
"encoding/json"
"os"
"runtime"
"bytes"
"encoding/gob"