upt playbook

This commit is contained in:
jaydee
2024-07-09 01:44:49 +02:00
parent 64e47c68d3
commit 826b44658c

View File

@@ -1,8 +1,13 @@
#!/bin/bash
THIS_HOST=`uname -n`
case $1 in
"start")
echo lala2 >> /tmp/mqtt_srv.log
python3 /usr/bin/mqtt_srv.py > /dev/null 2>&1 &
if [ "$THIS_HOST" == "NAS" ]
then
/share/ZFS530_DATA/.qpkg/QPython312/bin/python3 /usr/bin/mqtt_srv.py > /dev/null 2>&1 &
else
python3 /jffs/scripts/mqtt_srv/mqtt_srv.py > /dev/null 2>&1 &
;;
"stop")
echo lala1 >> /tmp/mqtt_srv.log