mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-02 13:54:05 +02:00
Update 99-run.sh
This commit is contained in:
@@ -20,8 +20,8 @@ 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 kg not existing yet
|
# Create symlink if not existing yet
|
||||||
[ ! -f /data/config.yaml ] && ln -s $CONFIGSOURCE /data
|
[ ! -L /data/config.yaml ] && ln -s $CONFIGSOURCE /data
|
||||||
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
|
||||||
@@ -51,8 +51,8 @@ fi
|
|||||||
|
|
||||||
# Check if database is here or create symlink
|
# Check if database is here or create symlink
|
||||||
if [ -f $DATABASESOURCE ]; then
|
if [ -f $DATABASESOURCE ]; then
|
||||||
# Create symlink kg not existing yet
|
# Create symlink if not existing yet
|
||||||
[ ! -f /data/enedisgateway.db ] && ln -s ${DATABASESOURCE} /data
|
[ ! -L /data/enedisgateway.db ] && ln -s ${DATABASESOURCE} /data
|
||||||
bashio::log.info "Using database file found in $DATABASESOURCE"
|
bashio::log.info "Using database file found in $DATABASESOURCE"
|
||||||
else
|
else
|
||||||
# Create symlink for addon to create database
|
# Create symlink for addon to create database
|
||||||
|
|||||||
Reference in New Issue
Block a user