mirror of
https://github.com/mrworf/plexupdate.git
synced 2025-08-20 05:13:19 -07:00
Random cleanup
This commit is contained in:
parent
e71570687f
commit
533b59d367
1 changed files with 3 additions and 6 deletions
|
@ -361,11 +361,8 @@ elif [ ! -z "${EMAIL}" ] && [[ "$EMAIL" == *"@"* ]] && [[ "$EMAIL" != *"@"*"."*
|
|||
fi
|
||||
|
||||
|
||||
if [ "${AUTOINSTALL}" = "yes" -o "${AUTOSTART}" = "yes" ]; then
|
||||
if [ ${EUID} -ne 0 ]; then
|
||||
if [ "${AUTOINSTALL}" = "yes" -o "${AUTOSTART}" = "yes" ] && [ ${EUID} -ne 0 ]; then
|
||||
error "You need to be root to use AUTOINSTALL/AUTOSTART option."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
|
@ -533,7 +530,7 @@ fi
|
|||
# By default, try downloading
|
||||
SKIP_DOWNLOAD="no"
|
||||
|
||||
# Installed version detection (only supported for deb based systems, feel free to submit rpm equivalent)
|
||||
# Installed version detection
|
||||
if [ "${REDHAT}" != "yes" ]; then
|
||||
INSTALLED_VERSION=$(dpkg-query -s plexmediaserver 2>/dev/null | grep -Po 'Version: \K.*')
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue