detect synology

update plexupdate.sh to automatically determine if we're running on a synology
This commit is contained in:
myellen 2019-02-12 11:46:47 -05:00 committed by Max
parent 117f92269d
commit 9124a438ce
No known key found for this signature in database
GPG key ID: 0BDA73476CD8AB10

View file

@ -307,6 +307,20 @@ if [ -z "${DISTRO_INSTALL}" ]; then
else
DISTRO_INSTALL="${REDHAT_INSTALL}"
fi
elif [ -f /etc/synoinfo.conf ]; then
DISTRO="synology"
if [ "${PUBLIC}" = "yes" ]; then
if [ "${ARCH}" = "x86_64"]; then
BUILD="linux-ubuntu-x86_64"
elif [ "${ARCH}" = "x86"]; then
BUILD="linux-synology-i686"
elif [ "${ARCH}" = "armv7"]; then
BUILD="linux-synology-armv7"
fi
else
BUILD="linux-${ARCH}"
fi
DISTRO_INSTALL="synopkg install"
else
REDHAT=no
DISTRO="debian"