mirror of
https://github.com/mrworf/plexupdate.git
synced 2025-08-19 21:03:19 -07:00
Use absolute path to /sbin/service
Sometimes, when using sudo or cron, /sbin might not be in the user's PATH, and thus we need to specify its full path when AUTOSTARTing it.
This commit is contained in:
parent
2080649d80
commit
ab740b9ead
1 changed files with 1 additions and 1 deletions
|
@ -345,7 +345,7 @@ if [ "${AUTOSTART}" == "yes" ]; then
|
|||
if [ -f "/bin/systemctl" ]; then
|
||||
systemctl start plexmediaserver.service
|
||||
else
|
||||
service plexmediaserver start
|
||||
/sbin/service plexmediaserver start
|
||||
fi
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue