Update 99-run.sh

This commit is contained in:
Alexandre
2023-07-26 19:24:30 +02:00
committed by GitHub
parent becf6f3f7b
commit c1108f0fc0

View File

@@ -87,11 +87,10 @@ if [ -f "$CONFIGSOURCE" ]; then
else
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::exit.nok
fi
else
# Create symlink for addon to create config
touch "${CONFIGSOURCE}"
cp /templates/config.yaml "$(dirname "${CONFIGSOURCE}")"/
ln -sf "$CONFIGSOURCE" /data
rm "$CONFIGSOURCE"
# Need to restart