mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2024-11-17 02:48:31 -07:00
17 lines
312 B
Bash
17 lines
312 B
Bash
#!/bin/sh
|
|
|
|
if [ ! -z "$ZIGBEE2MQTT_DATA" ]; then
|
|
DATA="$ZIGBEE2MQTT_DATA"
|
|
else
|
|
DATA="/app/data"
|
|
fi
|
|
|
|
echo "Using '$DATA' as data directory"
|
|
|
|
if [ ! -f "$DATA/configuration.yaml" ]; then
|
|
echo "Creating configuration file..."
|
|
cp /app/configuration.yaml "$DATA/configuration.yaml"
|
|
fi
|
|
|
|
exec npm start
|