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