This commit is contained in:
2025-04-24 19:42:14 +03:00
parent 22cb685d90
commit 43acf825d7
15 changed files with 94 additions and 389 deletions

View File

@@ -1,23 +0,0 @@
#!/command/with-contenv bashio
# shellcheck shell=bash
# shellcheck disable=SC2207
# ==============================================================================
# Home Assistant Add-on: Vector
# Copy default config
# ==============================================================================
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"
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

View File

@@ -1 +0,0 @@
oneshot

View File

@@ -1 +0,0 @@
/etc/s6-overlay/s6-rc.d/init-vector/run