mirror of
https://github.com/mrworf/plexupdate.git
synced 2025-07-16 02:02:58 -07:00
detect synology
update plexupdate.sh to automatically determine if we're running on a synology
This commit is contained in:
parent
117f92269d
commit
9124a438ce
1 changed files with 14 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue