From 9124a438ce1fdf1e36c371632cd26e8b09b611e9 Mon Sep 17 00:00:00 2001 From: myellen Date: Tue, 12 Feb 2019 11:46:47 -0500 Subject: [PATCH] detect synology update plexupdate.sh to automatically determine if we're running on a synology --- plexupdate.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/plexupdate.sh b/plexupdate.sh index 80002be..e59edea 100755 --- a/plexupdate.sh +++ b/plexupdate.sh @@ -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"