Change base image to 'hassioaddons/debian-base'

This commit is contained in:
Max Winterstein
2021-01-02 00:40:40 +01:00
parent 2ed9fdd6ea
commit 56bff805f5
4 changed files with 23 additions and 8 deletions

View File

@@ -0,0 +1,18 @@
#!/usr/bin/with-contenv bashio
set -e
echo "Symlinking data dir"
mkdir -p /share/eufy-ha-mqtt-bridge/data
rm -rfv /app/data
ln -s /share/eufy-ha-mqtt-bridge/data /app # symlink data mount from share
echo "exporting environment vars form options file"
echo '# Generated by homeassistant, do not edit!' > /app/data/config.yml
echo '# Edit configuration only at the add-on!' >> /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..."
npm run start