summaryrefslogtreecommitdiff
blob: ccc1a67fcf71bc36ab6f569c63fa61b342466305 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

pyexe=python2.7

if [ ! -x /usr/bin/${pyexe} ]; then
    pyexe=python2.6
fi

if [ ! -x /usr/bin/${pyexe} ]; then
    echo "No suitable python executable found in /usr/sbin (python2.6 || python2.7)"
    exit 1
fi

cd /usr/share/sabnzbd && /usr/bin/${pyexe} SABnzbd.py $*