11 lines
348 B
Bash
Executable File
11 lines
348 B
Bash
Executable File
#!/bin/bash
|
|
|
|
echo | lscpu | grep "rchitecture"
|
|
|
|
if lscpu | grep -q "arm";
|
|
then
|
|
docker-compose -f docker-compose-ARM.yaml exec mqtt /usr/bin/mosquitto_pub -h localhost -t tag -m "e2 80 11 71 00 00 02 0d 5c 33 9a 76 6e 4c"
|
|
else
|
|
docker-compose exec mqtt /usr/bin/mosquitto_pub -h localhost -t tag -m "e2 80 11 71 00 00 02 0d 5c 33 9a 76 6e 4c"
|
|
fi
|