diff --git a/Makefile b/Makefile index 4fe183d..7d64284 100644 --- a/Makefile +++ b/Makefile @@ -26,10 +26,10 @@ install: mkdir -p /var/lib/house mkdir -p /etc/house rm -f /usr/local/bin/housekasa /etc/init.d/housekasa - cp housekasa /usr/local/bin + cp housekasa kasacmd /usr/local/bin cp init.debian /etc/init.d/housekasa - chown root:root /usr/local/bin/housekasa /etc/init.d/housekasa - chmod 755 /usr/local/bin/housekasa /etc/init.d/housekasa + chown root:root /usr/local/bin/housekasa /usr/local/bin/kasacmd /etc/init.d/housekasa + chmod 755 /usr/local/bin/housekasa /usr/local/bin/kasacmd /etc/init.d/housekasa mkdir -p $(SHARE)/public/kasa chmod 755 $(SHARE) $(SHARE)/public $(SHARE)/public/kasa cp public/* $(SHARE)/public/kasa @@ -43,7 +43,8 @@ install: uninstall: systemctl stop housekasa systemctl disable housekasa - rm -f /usr/local/bin/housekasa /etc/init.d/housekasa + rm -f /usr/local/bin/housekasa /usr/local/bin/kasacmd /etc/init.d/housekasa + rm -rf $(SHARE)/public/kasa systemctl daemon-reload purge: uninstall