File tree Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -126,8 +126,8 @@ docker run --rm \
126
126
-e BLE=true \
127
127
-e IDENTITIES="{\"00:11:22:33:44:55:66\":\"0dc540f3025b474b9ef1085e051b1add\",\"AA:BB:CC:DD:EE:FF\":\"6385424e1b0341109942ad2a6bb42e58\"}" \
128
128
-e BINDKEYS="{\"00:11:22:33:44:55:66\":\"0dc540f3025b474b9ef1085e051b1add\",\"AA:BB:CC:DD:EE:FF\":\"6385424e1b0341109942ad2a6bb42e58\"}" \
129
- -e WHITELIST="[11:22:33:44:55:66,AA:BB:CC:DD:EE:FF]" \
130
- -e BLACKLIST="[11:22:33:44:55:66,AA:BB:CC:DD:EE:FF]" \
129
+ -e WHITELIST=' "[11:22:33:44:55:66,AA:BB:CC:DD:EE:FF]"' \
130
+ -e BLACKLIST=' "[11:22:33:44:55:66,AA:BB:CC:DD:EE:FF]"' \
131
131
-v /var/run/dbus:/var/run/dbus \
132
132
--name theengsgateway \
133
133
theengs/gateway-ARCH:latest
Original file line number Diff line number Diff line change @@ -202,9 +202,7 @@ echo "Creating config at $CONFIG ..."
202
202
"time_format": "${TIME_FORMAT:- 0} ",
203
203
"ble": ${BLE:- true} ,
204
204
"enable_tls": ${ENABLE_TLS:- false} ,
205
- "enable_websocket": ${ENABLE_WEBSOCKET:- false} ,
206
- "whitelist": "${WHITELIST:- []} ",
207
- "blacklist": "${BLACKLIST:- []} "
205
+ "enable_websocket": ${ENABLE_WEBSOCKET:- false}
208
206
EOF
209
207
# Conditionally include IDENTITIES if not empty
210
208
if [ -n " $IDENTITIES " ]; then
216
214
echo " , \" bindkeys\" : $BINDKEYS "
217
215
fi
218
216
217
+ # Conditionally include WHITELIST if not empty
218
+ if [ -n " $WHITELIST " ]; then
219
+ echo " , \" whitelist\" : $WHITELIST "
220
+ fi
221
+
222
+ # Conditionally include BLACKLIST if not empty
223
+ if [ -n " $BLACKLIST " ]; then
224
+ echo " , \" blacklist\" : $BLACKLIST "
225
+ fi
226
+
219
227
echo " }"
220
228
} > $CONFIG
221
229
You can’t perform that action at this time.
0 commit comments