1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/domoticz_ynh.git synced 2024-09-03 18:26:17 +02:00
domoticz_ynh/scripts/_common.sh

37 lines
1 KiB
Bash
Raw Normal View History

2020-10-05 23:05:58 +02:00
#!/bin/bash
#=================================================
# COMMON VARIABLES
#=================================================
#mosquitto and mosquitto-clients are required for mqtt
2023-02-27 23:24:05 +01:00
extra_pkg_dependencies="mosquitto mosquitto-clients"
2020-10-05 23:05:58 +02:00
2022-05-22 19:15:23 +02:00
default_mqtt_port=1883
2022-06-05 14:56:40 +02:00
default_mqtt_websocket_port=8883
2022-05-22 19:15:23 +02:00
2020-10-05 23:05:58 +02:00
lowercase(){
echo "$1" | sed "y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/"
}
OS=`lowercase \`uname -s\``
mach=`uname -m`
if [ ${mach} = "armv6l" ]
2020-10-05 23:05:58 +02:00
then
mach="armv7l"
2020-10-05 23:05:58 +02:00
fi
sha256=$(wget -qO- https://releases.domoticz.com/releases/release/domoticz_${os}_${mach}.tgz.sha256sum | sed 's/ update.tgz//' | sed 's/ domoticz_linux_x86_64.tgz//')
2020-10-05 23:05:58 +02:00
#=================================================
# PERSONAL HELPERS
#=================================================
#=================================================
# EXPERIMENTAL HELPERS
#=================================================
#=================================================
# FUTURE OFFICIAL HELPERS
#=================================================