mirror of
https://github.com/mtan93/homeassistant-addons.git
synced 2026-03-08 05:21:51 +00:00
Dirtypatched log level for console output
This commit is contained in:
@@ -4,5 +4,7 @@
|
||||
- Remove superflous `apt-get` part
|
||||
- Added some 'do not edit' note to config.yml
|
||||
- Added some note about the rebuild button
|
||||
- Dirtypatched log level for console output
|
||||
|
||||
## [0.1.0] - 2020-12-31
|
||||
- Initial release
|
||||
@@ -11,5 +11,8 @@ echo '# Generated by homeassistant, do not edit!' > /app/data/config.yml
|
||||
echo '# Edit configuration only at the add-on!' >> /app/data/config.yml
|
||||
/app/node_modules/.bin/json2yml /data/options.json >> /app/data/config.yml
|
||||
|
||||
echo 'patching console log level'
|
||||
sed -i "s/level: process.env.NODE_ENV === 'production' ? 'error' : 'debug'\,/level: 'info',/" /app/index.js
|
||||
|
||||
echo "starting original stuff..."
|
||||
exec npm run start
|
||||
Reference in New Issue
Block a user