diff --git a/start.sh b/start.sh index 2a161686..1dfe749b 100755 --- a/start.sh +++ b/start.sh @@ -14,22 +14,22 @@ if [[ "$TAUTULLI_DOCKER" = "True" ]]; then echo "Running Tautulli using user $user (uid=$PUID) and group $group (gid=$PGID)" su "$user" -g "$group" -c "python /app/Tautulli.py --datadir /config" else - python Tautulli.py --datadir /config + python Tautulli.py --datadir /config fi else - if which python3 >/dev/null; then + if command -v python3 >/dev/null; then python3 Tautulli.py &> /dev/null & - elif which python3.8 >/dev/null; then + elif command -v python3.8 >/dev/null; then python3.8 Tautulli.py &> /dev/null & - elif which python3.7 >/dev/null; then + elif command -v python3.7 >/dev/null; then python3.7 Tautulli.py &> /dev/null & - elif which python3.6 >/dev/null; then + elif command -v python3.6 >/dev/null; then python3.6 Tautulli.py &> /dev/null & - elif which python >/dev/null; then + elif command -v python >/dev/null; then python Tautulli.py &> /dev/null & - elif which python2 >/dev/null; then + elif command -v python2 >/dev/null; then python2 Tautulli.py &> /dev/null & - elif which python2.7 >/dev/null; then + elif command -v python2.7 >/dev/null; then python2.7 Tautulli.py &> /dev/null & else echo "Cannot start Tautulli: python not found."