close
Warning:
Failed to sync with repository "ogBrowser-Git": (1366, "Incorrect string value: '\\xF0\\x9F\\x93\\xA6 I...' for column 'message' at row 1"); repository information may be out of date. Look in the Trac log for more information including mitigation strategies.
main
|
Last change
on this file since 68c4c91 was
6900215,
checked in by Ramón M. Gómez <ramongomez@…>, 5 years ago
|
|
#940: Avoid error when Linux daemon scripts look for Python version.
|
-
Property mode set to
100755
|
|
File size:
317 bytes
|
| Line | |
|---|
| 1 | #!/bin/sh |
|---|
| 2 | |
|---|
| 3 | for p in python python3; do |
|---|
| 4 | [ "$(command -v $p)" ] && [ -z "$PYTHON" ] && [ $($p -c 'import sys; print(sys.version_info[0])') -eq 3 ] && PYTHON=$p |
|---|
| 5 | done |
|---|
| 6 | if [ -z "$PYTHON" ]; then |
|---|
| 7 | echo "ERROR: OGAgent needs Python 3" &>2 |
|---|
| 8 | exit 1 |
|---|
| 9 | fi |
|---|
| 10 | |
|---|
| 11 | FOLDER=/usr/share/OGAgent |
|---|
| 12 | |
|---|
| 13 | cd $FOLDER |
|---|
| 14 | $PYTHON OGAgentUser.py $@ |
|---|
Note: See
TracBrowser
for help on using the repository browser.
Download in other formats: