add synology handling to AUTOSTART

This commit is contained in:
myellen 2019-06-13 03:25:38 -04:00 committed by GitHub
commit 6f40555c9a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -520,6 +520,8 @@ if [ "${AUTOSTART}" = "yes" ]; then
service plexmediaserver start service plexmediaserver start
elif [ -x /etc/init.d/plexmediaserver ]; then elif [ -x /etc/init.d/plexmediaserver ]; then
/etc/init.d/plexmediaserver start /etc/init.d/plexmediaserver start
elif [ "${DISTRO}" = "synology" ]; then
synopkg start "Plex Media Server"
else else
error "AUTOSTART was specified but no startup scripts were found for 'plexmediaserver'." error "AUTOSTART was specified but no startup scripts were found for 'plexmediaserver'."
exit 1 exit 1