bin (sat): check twistd before twistd3 to use venv version first
This commit is contained in:
parent
81650a8ed4
commit
ee53fae57b
1 changed files with 3 additions and 3 deletions
6
bin/sat
6
bin/sat
|
|
@ -4,10 +4,10 @@ DEBUG=""
|
|||
DAEMON=""
|
||||
PYTHON="python3"
|
||||
|
||||
# for Python 3, "twistd" is named "twistd3" on some distros, so we check for it first
|
||||
TWISTD="$(which twistd3 2>/dev/null)"
|
||||
TWISTD="$(which twistd 2>/dev/null)"
|
||||
if [ $? -ne 0 ]; then
|
||||
TWISTD="$(which twistd 2>/dev/null)"
|
||||
# for Python 3, "twistd" is named "twistd3" on some distros
|
||||
TWISTD="$(which twistd3 2>/dev/null)"
|
||||
fi
|
||||
if [ $? -ne 0 ]; then
|
||||
printf "Can't find \"twistd\" script, are you sure that Twisted is installed?\n"
|
||||
|
|
|
|||
Loading…
Reference in a new issue