feat: allow setting the vector image as a global property

This commit is contained in:
Jose Diaz-Gonzalez
2024-01-25 04:26:57 -05:00
parent c496f8abd6
commit aa05a95243
5 changed files with 39 additions and 8 deletions

View File

@@ -103,6 +103,10 @@ func CommandVectorStart(vectorImage string) error {
return err
}
if vectorImage == "" {
vectorImage = common.PropertyGet("logs", "--global", "vector-image")
}
if common.ContainerExists(vectorContainerName) {
if common.ContainerIsRunning(vectorContainerName) {
common.LogVerbose("Vector container is running")