mirror of
https://github.com/mrworf/plexupdate.git
synced 2025-07-13 00:32:59 -07:00
update installer.sh
add ability to detect if running on synology in installer.sh
This commit is contained in:
parent
9124a438ce
commit
5bfb7d45e8
1 changed files with 3 additions and 0 deletions
|
@ -42,6 +42,9 @@ check_distro() {
|
||||||
elif hash apt-get 2>/dev/null; then
|
elif hash apt-get 2>/dev/null; then
|
||||||
DISTRO="debian"
|
DISTRO="debian"
|
||||||
DISTRO_INSTALL="apt-get install"
|
DISTRO_INSTALL="apt-get install"
|
||||||
|
elif [ -f /etc/synoinfo.conf ]; then
|
||||||
|
DISTRO="synology"
|
||||||
|
DISTRO_INSTALL="synopkg install"
|
||||||
else
|
else
|
||||||
DISTRO="unknown"
|
DISTRO="unknown"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue