source:
ogAgent-Git/macos/scripts/postinstall
@
53f2a33
Last change on this file since 53f2a33 was 75ba20c, checked in by , 8 years ago | |
---|---|
|
|
File size: 345 bytes |
Line | |
---|---|
1 | #!/usr/bin/env sh |
2 | |
3 | # Directories |
4 | SRCDIR=$(dirname "$0") |
5 | BINDIR=/usr/bin |
6 | INITDIR=/Library/LaunchDaemons |
7 | |
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 |
13 | |
14 | # Copying files. |
15 | cp $SRCDIR/ogagent $BINDIR |
16 | cp $SRCDIR/es.opengnsys.ogagent.plist $INITDIR |
17 |
Note: See TracBrowser
for help on using the repository browser.