mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-14 10:36:57 -07:00
Replace which with command -v in startup script
This commit is contained in:
parent
356f64cac0
commit
6dab6194ea
1 changed files with 8 additions and 8 deletions
16
start.sh
16
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."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue