mirror of
https://gitlab.sectorq.eu/jaydee/mqtt_srv.git
synced 2025-12-14 18:44:53 +01:00
upt playbook
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user