mirror of
https://github.com/mrworf/plexupdate.git
synced 2025-08-20 13:23:21 -07:00
Added systemd support for the AUTOSTART flag.
This commit is contained in:
parent
cfb0842c84
commit
4dc13ae8d9
1 changed files with 5 additions and 1 deletions
|
@ -321,7 +321,11 @@ if [ "${AUTOSTART}" == "yes" ]; then
|
||||||
elif [ "${REDHAT}" == "no" ]; then
|
elif [ "${REDHAT}" == "no" ]; then
|
||||||
echo "The AUTOSTART [-s] option may not be needed on your distribution."
|
echo "The AUTOSTART [-s] option may not be needed on your distribution."
|
||||||
fi
|
fi
|
||||||
|
if [ -f "/bin/systemctl" ]; then
|
||||||
|
sudo systemctl start plexmediaserver.service
|
||||||
|
else
|
||||||
sudo service plexmediaserver start
|
sudo service plexmediaserver start
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue