mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-19 13:59:15 +02:00
Update 99-run.sh
This commit is contained in:
@@ -87,11 +87,10 @@ if [ -f "$CONFIGSOURCE" ]; then
|
|||||||
else
|
else
|
||||||
cat ERROR
|
cat ERROR
|
||||||
bashio::log.fatal "Config file has an invalid yaml format. Please check the file in $CONFIGSOURCE. Errors list above. You can check yaml validity with the online tool yamllint.com"
|
bashio::log.fatal "Config file has an invalid yaml format. Please check the file in $CONFIGSOURCE. Errors list above. You can check yaml validity with the online tool yamllint.com"
|
||||||
bashio::exit.nok
|
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
# Create symlink for addon to create config
|
# Create symlink for addon to create config
|
||||||
touch "${CONFIGSOURCE}"
|
cp /templates/config.yaml "$(dirname "${CONFIGSOURCE}")"/
|
||||||
ln -sf "$CONFIGSOURCE" /data
|
ln -sf "$CONFIGSOURCE" /data
|
||||||
rm "$CONFIGSOURCE"
|
rm "$CONFIGSOURCE"
|
||||||
# Need to restart
|
# Need to restart
|
||||||
|
|||||||
Reference in New Issue
Block a user