decorare-oglive-methodsfix-urlfixes-winlgromero-filebeatlog-sess-lenmainmodulesnew-browserno-ptt-paramogadmcliogadmclient-statusogagent-jobsogagent-macosogcore1oggitogliveoglogoglog2override-moduleping1ping2ping3ping4py3-winpython3qndtestreport-progresssched-tasktlsunification2unification3versionswindows-fixes
Last change
on this file since f2af820 was
eeb5b08,
checked in by Ramón M. Gómez <ramongomez@…>, 5 years ago
|
#940: OGAgent control scripts looks for Python 2.
|
-
Property mode set to
100755
|
File size:
310 bytes
|
Rev | Line | |
---|
[11f7a07] | 1 | #!/bin/sh |
---|
| 2 | |
---|
[eeb5b08] | 3 | for p in python python2; do |
---|
| 4 | [ -z "$PYTHON" ] && [ $($p -c 'import sys; print(sys.version_info[0])') -eq 2 ] && PYTHON=$p |
---|
| 5 | done |
---|
| 6 | if [ -z "$PYTHON" ]; then |
---|
| 7 | echo "ERROR: OGAgent needs Python 2" &>2 |
---|
| 8 | exit 1 |
---|
| 9 | fi |
---|
| 10 | |
---|
[11f7a07] | 11 | FOLDER=/usr/share/OGAgent |
---|
| 12 | |
---|
| 13 | cd $FOLDER |
---|
[eeb5b08] | 14 | $PYTHON -m opengnsys.linux.OGAgentService $@ |
---|
Note: See
TracBrowser
for help on using the repository browser.