diff options
| author | AJ Jordan <alex@strugee.net> | 2020-11-29 03:47:18 -0500 |
|---|---|---|
| committer | AJ Jordan <alex@strugee.net> | 2020-11-29 04:04:22 -0500 |
| commit | ce82932c9a4a33fd142d56e5b0683429329751ee (patch) | |
| tree | 42af01db9e0969840db2c34993b3098823e797e8 /debian | |
| parent | a4e1732e3553b7c039d23f89082fe23b058aac59 (diff) | |
Remove useless which(1) calls in restart.sh
at(1) runs commandlines with /bin/sh anyway, which resolves paths. No
need to do it ourselves.
Diffstat (limited to 'debian')
| -rwxr-xr-x | debian/bin/restart.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/debian/bin/restart.sh b/debian/bin/restart.sh index acbec3dc7..46a70c497 100755 --- a/debian/bin/restart.sh +++ b/debian/bin/restart.sh @@ -37,10 +37,10 @@ fi echo "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 |
