update installer.sh

add ability to detect if running on synology in installer.sh
This commit is contained in:
myellen 2019-02-12 11:59:19 -05:00 committed by Max
parent 9124a438ce
commit 5bfb7d45e8
No known key found for this signature in database
GPG key ID: 0BDA73476CD8AB10

View file

@ -42,6 +42,9 @@ check_distro() {
elif hash apt-get 2>/dev/null; then
DISTRO="debian"
DISTRO_INSTALL="apt-get install"
elif [ -f /etc/synoinfo.conf ]; then
DISTRO="synology"
DISTRO_INSTALL="synopkg install"
else
DISTRO="unknown"
fi