refactor: always write out the vector configuration
This commit is contained in:
@@ -103,12 +103,12 @@ func CommandVectorLogs() error {
|
|||||||
// or starts an existing one if it already exists
|
// or starts an existing one if it already exists
|
||||||
func CommandVectorStart(vectorImage string) error {
|
func CommandVectorStart(vectorImage string) error {
|
||||||
common.LogInfo2("Starting vector container")
|
common.LogInfo2("Starting vector container")
|
||||||
if !common.ContainerExists(vectorContainerName) {
|
common.LogVerbose("Ensuring vector configuration exists")
|
||||||
common.LogVerbose("Ensuring vector configuration exists")
|
if err := writeVectorConfig(); err != nil {
|
||||||
if err := writeVectorConfig(); err != nil {
|
return err
|
||||||
return err
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
if !common.ContainerExists(vectorContainerName) {
|
||||||
return startVectorContainer(vectorImage)
|
return startVectorContainer(vectorImage)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user