2014-08-04 19:41:30 +00:00
|
|
|
#!/bin/sh
|
|
|
|
cd "`dirname "$0"`"
|
2014-09-02 18:46:49 +00:00
|
|
|
BASE="$HOME/Library/Application Support/Open Media Library"
|
2014-08-12 12:01:58 +00:00
|
|
|
if [[ ! -e "/usr/sbin/miredo" ]]; then
|
2015-03-07 14:25:21 +00:00
|
|
|
open -W ../Resources/miredo-osx-v1.2.6-beta2.pkg
|
2014-08-12 12:01:58 +00:00
|
|
|
fi
|
|
|
|
if [[ -e "$BASE" ]]; then
|
2015-03-31 18:25:18 +00:00
|
|
|
if [[ -e "$HOME/Library/LaunchAgents/com.openmedialibrary.loginscript.plist" ]]; then
|
|
|
|
launchctl start com.openmedialibrary.loginscript
|
|
|
|
open "$BASE/openmedialibrary/static/html/load.html"
|
|
|
|
else
|
|
|
|
"$BASE/ctl" open
|
|
|
|
fi
|
2014-08-04 19:41:30 +00:00
|
|
|
else
|
2015-03-31 18:25:18 +00:00
|
|
|
python install.py "$BASE" &
|
|
|
|
open ../Resources/static/install.html
|
2014-08-04 19:41:30 +00:00
|
|
|
fi
|