#940: OGAgent user scripts looks for Python 2.
parent
eeb5b08c98
commit
b2c820777e
|
@ -1,5 +1,13 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
for p in python python2; do
|
||||||
|
[ -z "$PYTHON" ] && [ $($p -c 'import sys; print(sys.version_info[0])') -eq 2 ] && PYTHON=$p
|
||||||
|
done
|
||||||
|
if [ -z "$PYTHON" ]; then
|
||||||
|
echo "ERROR: OGAgent needs Python 2" &>2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
FOLDER=/usr/share/OGAgent
|
FOLDER=/usr/share/OGAgent
|
||||||
|
|
||||||
cd $FOLDER
|
cd $FOLDER
|
||||||
|
|
Loading…
Reference in New Issue