Add eufy-ha-mqtt-bridge

This commit is contained in:
Max Winterstein
2020-12-31 00:28:30 +01:00
parent b437616009
commit 1416aface1
6 changed files with 68 additions and 1 deletions
+13
View File
@@ -0,0 +1,13 @@
#!/bin/sh
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"
/app/node_modules/.bin/json2yml /data/options.json > /app/data/config.yml
echo "starting original stuff..."
exec npm run start