Persist zwave_js device config files (#2038)

Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
Raman Gupta
2021-05-26 10:48:48 -04:00
committed by GitHub
parent 0f0e66a09b
commit 06c4d86406
2 changed files with 5 additions and 1 deletions

View File

@@ -3,3 +3,4 @@
# Setup folder structure
# ==============================================================================
mkdir -p /data/cache
mkdir -p /data/db

View File

@@ -12,5 +12,8 @@ fi
# Send out discovery information to Home Assistant
./discovery &
# Run daemon
# Set external config directory
export ZWAVEJS_EXTERNAL_CONFIG=/data/db
# Run daemon, passing external config directory in as environment variable
exec zwave-server ${SERIAL_DEVICE} --config /etc/zwave_config.json