Skip to content

Commit

Permalink
Fixed selective start of containers
Browse files Browse the repository at this point in the history
  • Loading branch information
merlinschumacher committed May 17, 2019
1 parent d1b334f commit 2ff0c3a
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -116,19 +116,23 @@ function start {
device=$(detect_zigbee_device)
if [ $device == "False" ]; then
echo "No Zigbee adaptor found. Not starting Zigbee2MQTT."
container="nodered"
container="nodered mqtt"
fi

if [ -z "$container" ]; then
echo "Only starting the containers:" $container
echo
fi

if [ ! -d data ]; then
build_data_structure
fi
echo $container
echo

echo "Starting the containers"
architecture=$(detect_arch)
echo "CPU architecture is: "$architecture
if [ $architecture == "unknown" ]; then
echo 'Error: Only amd64 and arm are supported'
echo 'Error: Only amd64 and arm32v7 are supported'
exit 1
fi
docker-compose up -d $container
Expand Down

0 comments on commit 2ff0c3a

Please sign in to comment.