Skip to content

Commit

Permalink
maintenance update
Browse files Browse the repository at this point in the history
  • Loading branch information
jens-maus committed Jul 7, 2021
1 parent 60cde1a commit 5766ab1
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 8 deletions.
10 changes: 7 additions & 3 deletions addon_files/mosquitto/rc.d/mosquitto
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@

CONF_DIR=/usr/local/etc/config
ADDON_DIR=/usr/local/addons/mosquitto

BIN_DIR=$ADDON_DIR/bin

# check for unsupported platforms
if grep -qim1 busmatic /www/api/methods/ccu/downloadFirmware.tcl; then
exit 13
fi

Stop () {
echo -n "Stopping Mosquitto: "
start-stop-daemon -K -q -p /var/run/mosquitto.pid && echo "OK"
Expand Down Expand Up @@ -46,7 +50,7 @@ case "$1" in
info)
echo "Info: <center><a href=\"https://mosquitto.org/\" target=\"_blank\"><img width=\"240\" src="/addons/mosquitto/mosquitto-text-side-28.png"></a></center>"
echo "Name: Mosquitto"
echo "Version: 1.5.8+2"
echo "Version: 1.5.8+3"
echo "Update: /addons/mosquitto/update_check.cgi"
echo "Operations: uninstall restart"
;;
Expand Down Expand Up @@ -77,4 +81,4 @@ esac



exit 0
exit 0
4 changes: 2 additions & 2 deletions addon_files/mosquitto/www/update_check.cgi
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env tclsh

set checkURL "https://api.github.com/repos/hobbyquaker/ccu-addon-mosquitto/releases/latest"
set downloadURL "https://github.com/hobbyquaker/ccu-addon-mosquitto/releases/latest"
set checkURL "https://api.github.com/repos/homematic-community/ccu-addon-mosquitto/releases/latest"
set downloadURL "https://github.com/homematic-community/ccu-addon-mosquitto/releases/latest"

catch {
set input $env(QUERY_STRING)
Expand Down
7 changes: 5 additions & 2 deletions addon_files/update_script
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@

ADDONS_DIR=/usr/local/addons
MSQ_DIR=$ADDONS_DIR/mosquitto


BIN_DIR=/usr/local/bin
LIB_DIR=/usr/local/lib
CONF_DIR=/usr/local/etc/config

# check for unsupported platforms
if grep -qim1 busmatic /www/api/methods/ccu/downloadFirmware.tcl; then
exit 13
fi

mount | grep /usr/local 2>&1 >/dev/null
if [ $? -eq 1 ]; then
mount /usr/local
Expand Down
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ cp -r $ADDON_FILES/* $ADDON_TMP/
cd $BUILD_DIR


ADDON_FILE=mosquitto-1.5.8+2.tar.gz
ADDON_FILE=mosquitto-1.5.8+3.tar.gz
echo "compressing addon package $ADDON_FILE ..."

mkdir $BUILD_DIR/dist 2> /dev/null
Expand Down

0 comments on commit 5766ab1

Please sign in to comment.