mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-11 08:21:00 +02:00
Update 99-run.sh
This commit is contained in:
@@ -4,9 +4,8 @@
|
||||
# Check if config is there #
|
||||
############################
|
||||
|
||||
if bashio::config.true "test"; then
|
||||
CONFIGSOURCE="/config/enedisgateway2mqtt/config.yaml"
|
||||
|
||||
if false; then
|
||||
# Check if config file is there, or create template
|
||||
if [ -f $CONFIGSOURCE ]; then
|
||||
echo "Using config file found in $CONFIGSOURCE"
|
||||
@@ -25,10 +24,14 @@ else
|
||||
bashio::log.fatal "Config file has an invalid yaml format. Please check the file in $CONFIGSOURCE"
|
||||
bashio::exit.nok
|
||||
fi
|
||||
|
||||
# Symlink
|
||||
rm /data/config.yaml
|
||||
ln -s $CONFIGSOURCE /data
|
||||
echo "Symlink created"
|
||||
|
||||
fi
|
||||
|
||||
|
||||
|
||||
#################
|
||||
# Create config #
|
||||
#################
|
||||
|
||||
Reference in New Issue
Block a user