From 5cbe11599ba5c85e3cb3a9d22c34ec39594d9c2a Mon Sep 17 00:00:00 2001 From: hobbyquaker Date: Sun, 18 Aug 2019 21:17:59 +0200 Subject: [PATCH] fix monit config removal (#241) --- addon_files/redmatic/bin/redmatic | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/addon_files/redmatic/bin/redmatic b/addon_files/redmatic/bin/redmatic index 937ea206..25a937f1 100755 --- a/addon_files/redmatic/bin/redmatic +++ b/addon_files/redmatic/bin/redmatic @@ -171,8 +171,9 @@ case "$1" in rm $CONF_DIR/lighttpd/redmatic.conf rm $CONF_DIR/rc.d/redmatic - if [ -f /usr/local/etc/redmatic-monit.cfg ]; then - rm /usr/local/etc/redmatic-monit.cfg + if [ -f /usr/local/etc/monit-redmatic.cfg ]; then + rm /usr/local/etc/monit-redmatic.cfg + /usr/bin/monit reload fi mount -o remount,rw /