Update installer for Synology DSM7 support

This commit is contained in:
Geoff Appleby 2021-08-06 14:54:06 -07:00
commit 23ce261e9b

View file

@ -45,6 +45,9 @@ check_distro() {
DISTRO_INSTALL="apt-get install" DISTRO_INSTALL="apt-get install"
elif [ -f /etc/synoinfo.conf ]; then elif [ -f /etc/synoinfo.conf ]; then
DISTRO="synology" DISTRO="synology"
if grep -q "major=\"7\"" /etc/VERSION; then
DISTRO="synology-dsm7"
fi
DISTRO_INSTALL="synopkg install" DISTRO_INSTALL="synopkg install"
else else
DISTRO="unknown" DISTRO="unknown"
@ -186,7 +189,7 @@ configure_plexupdate() {
AUTODELETE=yes AUTODELETE=yes
[ -z "$DISTRO" ] && check_distro [ -z "$DISTRO" ] && check_distro
if [ "$DISTRO" == "redhat" -o "$DISTRO" == "synology" ]; then if [ "$DISTRO" == "redhat" -o "$DISTRO" == "synology" -o "$DISTRO" == "synology-dsm7" ]; then
AUTOSTART=yes AUTOSTART=yes
else else
AUTOSTART= AUTOSTART=