Skip to content

Commit 2ff0c3a

Browse files
Fixed selective start of containers
1 parent d1b334f commit 2ff0c3a

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

start.sh

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,19 +116,23 @@ function start {
116116
device=$(detect_zigbee_device)
117117
if [ $device == "False" ]; then
118118
echo "No Zigbee adaptor found. Not starting Zigbee2MQTT."
119-
container="nodered"
119+
container="nodered mqtt"
120+
fi
121+
122+
if [ -z "$container" ]; then
123+
echo "Only starting the containers:" $container
124+
echo
120125
fi
121126

122127
if [ ! -d data ]; then
123128
build_data_structure
124129
fi
125-
echo $container
126-
echo
130+
127131
echo "Starting the containers"
128132
architecture=$(detect_arch)
129133
echo "CPU architecture is: "$architecture
130134
if [ $architecture == "unknown" ]; then
131-
echo 'Error: Only amd64 and arm are supported'
135+
echo 'Error: Only amd64 and arm32v7 are supported'
132136
exit 1
133137
fi
134138
docker-compose up -d $container

0 commit comments

Comments
 (0)