wip
This commit is contained in:
1 parent
627335177f
commit
4d4be6cefe
3 files changed
+15
-2
No files matched your search
@@ -6,8 +6,8 @@
|
||||
# Copy default config
|
||||
# ==============================================================================
|
||||
|
||||
CONFIG_PATH="/config/vector.yaml"
|
||||
DEFAULT_CONFIG="/vector.yaml"
|
||||
readonly CONFIG_PATH="/config/vector.yaml"
|
||||
readonly DEFAULT_CONFIG="/vector.yaml"
|
||||
|
||||
if ! bashio::fs.file_exists "$CONFIG_PATH"; then
|
||||
bashio::log.info "Copying default configuration from $DEFAULT_CONFIG"
|
||||
|
||||
Whitespace-only changes.
@@ -7,4 +7,17 @@
|
||||
|
||||
bashio::log.info "Starting Vector..."
|
||||
|
||||
if ! bashio::fs.file_exists "$CONFIG_PATH"; then
|
||||
bashio::log.info "Copying default configuration from $DEFAULT_CONFIG"
|
||||
|
||||
if cp "$DEFAULT_CONFIG" "$CONFIG_PATH"; then
|
||||
bashio::log.info "Default configuration copied successfully"
|
||||
else
|
||||
bashio::log.error "Failed to copy default configuration!"
|
||||
exit 1
|
||||
fi
|
||||
else
|
||||
bashio::log.info "Using existing configuration at $CONFIG_PATH"
|
||||
fi
|
||||
|
||||
exec /usr/local/bin/vector --config /config/vector.yaml
|
||||
Reference in new issue
Block a user