mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-06-24 06:01:40 +00:00
68ec507e30
* fix: Add secure default config. https://github.com/Koenkk/zigbee2mqtt/issues/16188 * Enable frontend by default
18 lines
322 B
Bash
18 lines
322 B
Bash
#!/bin/sh
|
|
set -e
|
|
|
|
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.example.yaml "$DATA/configuration.yaml"
|
|
fi
|
|
|
|
exec "$@"
|