The Free Software Media System - Server Backend & API
Remove useless which(1) calls in restart.sh
AJ Jordance82932c9a4a
diff --git a/debian/bin/restart.sh b/debian/bin/restart.shindex acbec3dc78..46a70c497e 100755--- a/debian/bin/restart.sh+++ b/debian/bin/restart.sh@@ -37,10 +37,10 @@ fiecho "Detected service control platform '$cmd'; using it to restart Jellyfin..."case $cmd in'systemctl')- echo "sleep 0.5; /usr/bin/sudo $( which systemctl ) start jellyfin" | at now+ echo "sleep 0.5; /usr/bin/sudo systemctl start jellyfin" | at now;;'service')- echo "sleep 0.5; /usr/bin/sudo $( which service ) jellyfin start" | at now+ echo "sleep 0.5; /usr/bin/sudo service jellyfin start" | at now;;'sysv')echo "sleep 0.5; /usr/bin/sudo /etc/init.d/jellyfin start" | at nowdiff --git a/fedora/restart.sh b/fedora/restart.shindex acbec3dc78..46a70c497e 100755--- a/fedora/restart.sh+++ b/fedora/restart.sh@@ -37,10 +37,10 @@ fiecho "Detected service control platform '$cmd'; using it to restart Jellyfin..."case $cmd in'systemctl')- echo "sleep 0.5; /usr/bin/sudo $( which systemctl ) start jellyfin" | at now+ echo "sleep 0.5; /usr/bin/sudo systemctl start jellyfin" | at now;;'service')- echo "sleep 0.5; /usr/bin/sudo $( which service ) jellyfin start" | at now+ echo "sleep 0.5; /usr/bin/sudo service jellyfin start" | at now;;'sysv')echo "sleep 0.5; /usr/bin/sudo /etc/init.d/jellyfin start" | at now