mirror of
https://github.com/mtan93/homebridge.git
synced 2026-03-17 13:20:57 +00:00
add Scripts to Rule Them All
This commit is contained in:
15
script/install
Executable file
15
script/install
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
echo "Installing Homebridge..."
|
||||
|
||||
APP_PATH=`pwd`
|
||||
USER_NAME=`whoami`
|
||||
|
||||
cp startup/org.homebridge.plist ~/Library/LaunchAgents/org.homebridge.plist
|
||||
|
||||
sed -i '' -e "s#%USER%#$USER_NAME#g" ~/Library/LaunchAgents/org.homebridge.plist
|
||||
sed -i '' -e "s#%PATH%#$APP_PATH#g" ~/Library/LaunchAgents/org.homebridge.plist
|
||||
|
||||
launchctl load -w -F ~/Library/LaunchAgents/org.homebridge.plist
|
||||
Reference in New Issue
Block a user