Skip to content

Commit 267829a

Browse files
committed
addon will remove its monitoring settings at uninstall
1 parent e56d1bf commit 267829a

File tree

6 files changed

+11
-3
lines changed

6 files changed

+11
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ This RaspberryMatic / CCU3 addon will allow you to access your HomeMatic devices
1515
All this runs on your RaspberryMatic / CCU3. You will not need any extra hardware.
1616

1717
# Installation
18-
Download the addon: https://github.com/thkl/hap-homematic/raw/master/addon_installer/hap-homematic-0.0.10.tar.gz and install it via system preferences.
18+
Download the addon: https://github.com/thkl/hap-homematic/raw/master/addon_installer/hap-homematic-0.0.11.tar.gz and install it via system preferences.
1919

2020
A little bit later (the addon will install all other needed software) you will have a HomeKit button in your ccu system preference page.
2121

addon_installer/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.0.10
1+
0.0.11
-7.8 KB
Binary file not shown.
7.88 KB
Binary file not shown.
-7.77 KB
Binary file not shown.

addon_installer/rc.d/hap-homematic

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ HAPROOT=/usr/local/addons/hap-homematic/
55
CONFIG_URL=/addons/hap-homematic/index.html
66
CONFIG_DIR=/usr/local/etc/config
77
PIDFILE=/var/run/hap-homematic.pid
8-
VER=0.0.10
8+
VER=0.0.11
99
PSPID=`ps -o pid,comm,args | awk '{if ($2=="node" && $4 ~ /hap-homematic/){print $1}}'`
1010
PSPID2=`ps -o pid,comm,args | awk '{if ($2=="hap-homematic-c"){print $1}}'`
1111
case "$1" in
@@ -64,6 +64,14 @@ case "$1" in
6464
rm /usr/local/etc/config/rc.d/hap-homematic
6565
rm -R /usr/local/etc/config/addons/www/hap-homematic
6666
rm -R /usr/local/etc/config/addons/hap-homematic
67+
68+
# remove the monit settings if there are leftovers
69+
if [ -f /usr/local/etc/monit_hap-homematic.cfg ]; then
70+
rm /usr/local/etc/monit_hap-homematic.cfg
71+
# and reload the monit
72+
/usr/bin/monit reload
73+
fi
74+
6775
;;
6876

6977
*)

0 commit comments

Comments
 (0)