mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-24 08:16:04 +02:00
Use a service
This commit is contained in:
@@ -18,8 +18,8 @@ if bashio::services.available 'mqtt' && ! bashio::config.true 'MQTT_DISABLED' ;
|
|||||||
|
|
||||||
# Copy script
|
# Copy script
|
||||||
cp /helpers/birdnet_to_mqtt.py /usr/bin/birdnet_to_mqtt.py
|
cp /helpers/birdnet_to_mqtt.py /usr/bin/birdnet_to_mqtt.py
|
||||||
|
cp /helpers/birdnet_to_mqtt.sh /custom-services.d
|
||||||
chmod 777 /usr/bin/birdnet_to_mqtt.py
|
chmod 777 /usr/bin/birdnet_to_mqtt.py
|
||||||
|
chmod 777 /custom-services.d/birdnet_to_mqtt.sh
|
||||||
|
|
||||||
# Start python
|
|
||||||
"$PYTHON_VIRTUAL_ENV" /usr/bin/birdnet_to_mqtt.py &>/proc/1/fd/1 & true
|
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user