mirror of
https://github.com/mtan93/homebridge.git
synced 2026-03-18 13:20:56 +00:00
conditionalize the install/uninstall scripts to support linux or darwin.
This commit is contained in:
@@ -1,6 +1,17 @@
|
||||
#!/bin/sh
|
||||
|
||||
echo "Uninstalling Homebridge..."
|
||||
# make forever stop the app.
|
||||
forever stop homebridge > /dev/null 2>&1
|
||||
launchctl unload ~/Library/LaunchAgents/org.homebridge.plist
|
||||
rm ~/Library/LaunchAgents/org.homebridge.plist
|
||||
|
||||
if [[ "$OSTYPE" == "linux*" ]]; then
|
||||
## install for linux
|
||||
echo ""
|
||||
elif [[ "$OSTYPE" == "darwin"* ]]; then
|
||||
## uninstall for OS X
|
||||
|
||||
# tell launchd to stop the process.
|
||||
launchctl unload ~/Library/LaunchAgents/org.homebridge.plist
|
||||
# remove the launchd script.
|
||||
rm ~/Library/LaunchAgents/org.homebridge.plist
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user