Forráskód Böngészése

Remove the `at now` hack

Joshua M. Boniface 4 éve
szülő
commit
97665c9478
2 módosított fájl, 6 hozzáadás és 6 törlés
  1. 3 3
      debian/bin/restart.sh
  2. 3 3
      fedora/restart.sh

+ 3 - 3
debian/bin/restart.sh

@@ -24,13 +24,13 @@ cmd="$( get_service_command )"
 echo "Detected service control platform '$cmd'; using it to restart Jellyfin..."
 echo "Detected service control platform '$cmd'; using it to restart Jellyfin..."
 case $cmd in
 case $cmd in
     'systemctl')
     'systemctl')
-        echo "sleep 2; /usr/bin/sudo $( which systemctl ) restart jellyfin || /usr/bin/sudo $( which systemctl ) start jellyfin" | at now 
+        sleep 2; /usr/bin/sudo $( which systemctl ) restart jellyfin || /usr/bin/sudo $( which systemctl ) start jellyfin
         ;;
         ;;
     'service')
     'service')
-        echo "sleep 2; /usr/bin/sudo $( which service ) jellyfin restart || /usr/bin/sudo $( which service ) jellyfin start" | at now 
+        sleep 2; /usr/bin/sudo $( which service ) jellyfin restart || /usr/bin/sudo $( which service ) jellyfin start
         ;;
         ;;
     'sysv')
     'sysv')
-        echo "sleep 2; /usr/bin/sudo /etc/init.d/jellyfin restart || /usr/bin/sudo /etc/init.d/jellyfin start" | at now 
+        sleep 2; /usr/bin/sudo /etc/init.d/jellyfin restart || /usr/bin/sudo /etc/init.d/jellyfin start
         ;;
         ;;
 esac
 esac
 exit 0
 exit 0

+ 3 - 3
fedora/restart.sh

@@ -24,13 +24,13 @@ cmd="$( get_service_command )"
 echo "Detected service control platform '$cmd'; using it to restart Jellyfin..."
 echo "Detected service control platform '$cmd'; using it to restart Jellyfin..."
 case $cmd in
 case $cmd in
     'systemctl')
     'systemctl')
-        echo "sleep 2; /usr/bin/sudo $( which systemctl ) restart jellyfin || /usr/bin/sudo $( which systemctl ) start jellyfin" | at now 
+        sleep 2; /usr/bin/sudo $( which systemctl ) restart jellyfin || /usr/bin/sudo $( which systemctl ) start jellyfin
         ;;
         ;;
     'service')
     'service')
-        echo "sleep 2; /usr/bin/sudo $( which service ) jellyfin restart || /usr/bin/sudo $( which service ) jellyfin start" | at now 
+        sleep 2; /usr/bin/sudo $( which service ) jellyfin restart || /usr/bin/sudo $( which service ) jellyfin start
         ;;
         ;;
     'sysv')
     'sysv')
-        echo "sleep 2; /usr/bin/sudo /etc/init.d/jellyfin restart || /usr/bin/sudo /etc/init.d/jellyfin start" | at now 
+        sleep 2; /usr/bin/sudo /etc/init.d/jellyfin restart || /usr/bin/sudo /etc/init.d/jellyfin start
         ;;
         ;;
 esac
 esac
 exit 0
 exit 0