mirror of
https://github.com/mtan93/homebridge.git
synced 2026-03-16 13:20:56 +00:00
support install/uninstall on linux with SysVinit
This commit is contained in:
@@ -5,8 +5,13 @@ echo "Uninstalling Homebridge..."
|
||||
forever stop homebridge > /dev/null 2>&1
|
||||
|
||||
if [[ "$OSTYPE" == "linux*" ]]; then
|
||||
## install for linux
|
||||
echo ""
|
||||
## uninstall for linux
|
||||
|
||||
# stop the service.
|
||||
sudo /etc/init.d/homebridge stop
|
||||
|
||||
# remove the service from launching at boot.
|
||||
sudo update-rc.d -f homebridge remove
|
||||
elif [[ "$OSTYPE" == "darwin"* ]]; then
|
||||
## uninstall for OS X
|
||||
|
||||
|
||||
Reference in New Issue
Block a user