I have a simple script that restarts the zigbee2mqtt.service
The script is located on "Orange pi zero" where is installed the "Node -red".
code of script
#!/usr/bin/env bash
systemctl restart zigbee2mqtt
But I can't run the script.
my flow
[{"id":"2f448a0f.d879a6","type":"tab","label":"Flow 3","disabled":false,"info":""},{"id":"4cc56c86.93ae84","type":"exec","z":"2f448a0f.d879a6","command":"systemctl restart zigbee2mqtt","addpay":true,"append":"","useSpawn":"false","timer":"","oldrc":false,"name":"Restart zigbee2mqtt","x":570,"y":200,"wires":[["a023a041.f66a3"],["a023a041.f66a3"],["a023a041.f66a3"]]},{"id":"9877c52a.07c6e8","type":"inject","z":"2f448a0f.d879a6","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":310,"y":200,"wires":[["4cc56c86.93ae84"]]},{"id":"a023a041.f66a3","type":"debug","z":"2f448a0f.d879a6","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":850,"y":200,"wires":[]}]
Also I tried like that
[{"id":"2f448a0f.d879a6","type":"tab","label":"Flow 3","disabled":false,"info":""},{"id":"4cc56c86.93ae84","type":"exec","z":"2f448a0f.d879a6","command":"/home/zerg/.scrtipts/restart_zigbee2mqtt.sh","addpay":true,"append":"","useSpawn":"false","timer":"","oldrc":false,"name":"Restart zigbee2mqtt","x":570,"y":200,"wires":[["a023a041.f66a3"],["a023a041.f66a3"],["a023a041.f66a3"]]},{"id":"9877c52a.07c6e8","type":"inject","z":"2f448a0f.d879a6","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":310,"y":200,"wires":[["4cc56c86.93ae84"]]},{"id":"a023a041.f66a3","type":"debug","z":"2f448a0f.d879a6","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":850,"y":200,"wires":[]}]
What am I doing wrong?