source:
ogAgent-Git/macos/scripts/postinstall
@
6a01818
| Last change on this file since 6a01818 was 75ba20c, checked in by , 9 years ago | |
|---|---|
|
|
| File size: 345 bytes | |
| Rev | Line | |
|---|---|---|
| [2bc61be] | 1 | #!/usr/bin/env sh |
| 2 | ||
| 3 | # Directories | |
| 4 | SRCDIR=$(dirname "$0") | |
| [1da7c19] | 5 | BINDIR=/usr/bin |
| [2bc61be] | 6 | INITDIR=/Library/LaunchDaemons |
| 7 | ||
| [75ba20c] | 8 | # Check if it needs to install Python dependencies: |
| 9 | if ! which pip &>/dev/null; then | |
| 10 | easy_install pip | |
| 11 | pip install netifaces requests six | |
| 12 | fi | |
| [2bc61be] | 13 | |
| [75ba20c] | 14 | # Copying files. |
| [2bc61be] | 15 | cp $SRCDIR/ogagent $BINDIR |
| 16 | cp $SRCDIR/es.opengnsys.ogagent.plist $INITDIR | |
| 17 |
Note: See TracBrowser
for help on using the repository browser.

