mirror of
https://github.com/mtan93/homeassistant-addons.git
synced 2026-03-08 05:21:51 +00:00
Change to bashio logs
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
## [0.5.0] - 2021-01-02
|
||||
- Improve image recration by adding some cache buster
|
||||
- Change to bashio logs
|
||||
|
||||
## [0.4.0] - 2021-01-02
|
||||
- Change base image to `hassioaddons/debian-base`
|
||||
|
||||
@@ -1,18 +1,17 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
set -e
|
||||
#!/usr/bin/env bashio
|
||||
|
||||
echo "Symlinking data dir"
|
||||
bashio::log.info "Symlinking data dir"
|
||||
mkdir -p /share/eufy-ha-mqtt-bridge/data
|
||||
rm -rfv /app/data
|
||||
rm -rf /app/data
|
||||
ln -s /share/eufy-ha-mqtt-bridge/data /app # symlink data mount from share
|
||||
|
||||
echo "exporting environment vars form options file"
|
||||
bashio::log.info "Generating config.yml from options.json"
|
||||
echo '# Generated by homeassistant, do not edit!' > /app/data/config.yml
|
||||
echo '# Edit configuration only at the add-on!' >> /app/data/config.yml
|
||||
echo '# Edit configuration only at the Add-on configuration tab!' >> /app/data/config.yml
|
||||
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..."
|
||||
bashio::log.info "starting original stuff..."
|
||||
npm run start
|
||||
Reference in New Issue
Block a user