From 660141cb167a6de5643f1417d129889799231202 Mon Sep 17 00:00:00 2001 From: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> Date: Wed, 1 Jul 2020 14:43:35 -0700 Subject: [PATCH] Try various python versions in startup script --- start.sh | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/start.sh b/start.sh index e3bbf5ed..2a161686 100755 --- a/start.sh +++ b/start.sh @@ -17,5 +17,21 @@ if [[ "$TAUTULLI_DOCKER" = "True" ]]; then python Tautulli.py --datadir /config fi else - python Tautulli.py &> /dev/null & + if which python3 >/dev/null; then + python3 Tautulli.py &> /dev/null & + elif which python3.8 >/dev/null; then + python3.8 Tautulli.py &> /dev/null & + elif which python3.7 >/dev/null; then + python3.7 Tautulli.py &> /dev/null & + elif which python3.6 >/dev/null; then + python3.6 Tautulli.py &> /dev/null & + elif which python >/dev/null; then + python Tautulli.py &> /dev/null & + elif which python2 >/dev/null; then + python2 Tautulli.py &> /dev/null & + elif which python2.7 >/dev/null; then + python2.7 Tautulli.py &> /dev/null & + else + echo "Cannot start Tautulli: python not found." + fi fi