From 5a485b7192d72858937991a030d28c3c0eec95dc Mon Sep 17 00:00:00 2001 From: Alex Malinovich Date: Fri, 25 Nov 2016 20:27:32 -0800 Subject: [PATCH] Only show AUTOSTART warning if AUTOINSTALL is enabled --- plexupdate.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plexupdate.sh b/plexupdate.sh index a40f143..553f910 100755 --- a/plexupdate.sh +++ b/plexupdate.sh @@ -534,7 +534,7 @@ SKIP_DOWNLOAD="no" if [ "${REDHAT}" != "yes" ]; then INSTALLED_VERSION=$(dpkg-query -s plexmediaserver 2>/dev/null | grep -Po 'Version: \K.*') else - if [ "${AUTOSTART}" = "no" ]; then + if [ "${AUTOINSTALL}" = "yes" -a "${AUTOSTART}" = "no" ]; then warn "Your distribution may require the use of the AUTOSTART [-s] option for the service to start after the upgrade completes." fi INSTALLED_VERSION=$(rpm -qv plexmediaserver 2>/dev/null)