Skip to content

Commit 23ce261

Browse files
committed
Update installer for Synology DSM7 support
1 parent ade4ddf commit 23ce261

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

extras/installer.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,11 @@ check_distro() {
4444
DISTRO="debian"
4545
DISTRO_INSTALL="apt-get install"
4646
elif [ -f /etc/synoinfo.conf ]; then
47-
DISTRO="synology"
48-
DISTRO_INSTALL="synopkg install"
47+
DISTRO="synology"
48+
if grep -q "major=\"7\"" /etc/VERSION; then
49+
DISTRO="synology-dsm7"
50+
fi
51+
DISTRO_INSTALL="synopkg install"
4952
else
5053
DISTRO="unknown"
5154
fi
@@ -186,7 +189,7 @@ configure_plexupdate() {
186189
AUTODELETE=yes
187190

188191
[ -z "$DISTRO" ] && check_distro
189-
if [ "$DISTRO" == "redhat" -o "$DISTRO" == "synology" ]; then
192+
if [ "$DISTRO" == "redhat" -o "$DISTRO" == "synology" -o "$DISTRO" == "synology-dsm7" ]; then
190193
AUTOSTART=yes
191194
else
192195
AUTOSTART=

0 commit comments

Comments
 (0)