mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-02 05:44:03 +02:00
Update 99-run.sh
This commit is contained in:
@@ -59,7 +59,9 @@ fi
|
|||||||
# Check if config file is there, or create one from template
|
# Check if config file is there, or create one from template
|
||||||
if [ -f "$CONFIGSOURCE" ]; then
|
if [ -f "$CONFIGSOURCE" ]; then
|
||||||
# Create symlink if not existing yet
|
# Create symlink if not existing yet
|
||||||
[ ! -L /data/config.yaml ] && ln -sf "$CONFIGSOURCE" /data
|
# shellcheck disable=SC2015
|
||||||
|
[ -f /data/config.yaml ] && rm /data/config.yaml || true
|
||||||
|
ln -sf "$CONFIGSOURCE" /data || true
|
||||||
bashio::log.info "Using config file found in $CONFIGSOURCE"
|
bashio::log.info "Using config file found in $CONFIGSOURCE"
|
||||||
|
|
||||||
# Check if yaml is valid
|
# Check if yaml is valid
|
||||||
|
|||||||
Reference in New Issue
Block a user