mirror of
https://github.com/netbirdio/netbird.git
synced 2025-04-22 18:38:55 +02:00
Add installer support for Synology (#1984)
* add installer support for the synology * skip ui installation for Synology * Fix conflicts
This commit is contained in:
parent
10fbdc2c4a
commit
a680f80ed9
@ -349,8 +349,16 @@ fi
|
|||||||
if type uname >/dev/null 2>&1; then
|
if type uname >/dev/null 2>&1; then
|
||||||
case "$(uname)" in
|
case "$(uname)" in
|
||||||
Linux)
|
Linux)
|
||||||
OS_NAME="$(. /etc/os-release && echo "$ID")"
|
|
||||||
OS_TYPE="linux"
|
OS_TYPE="linux"
|
||||||
|
UNAME_OUTPUT="$(uname -a)"
|
||||||
|
if echo "$UNAME_OUTPUT" | grep -qi "synology"; then
|
||||||
|
OS_NAME="synology"
|
||||||
|
INSTALL_DIR="/usr/local/bin"
|
||||||
|
PACKAGE_MANAGER="bin"
|
||||||
|
SKIP_UI_APP=true
|
||||||
|
else
|
||||||
|
if [ -f /etc/os-release ]; then
|
||||||
|
OS_NAME="$(. /etc/os-release && echo "$ID")"
|
||||||
INSTALL_DIR="/usr/bin"
|
INSTALL_DIR="/usr/bin"
|
||||||
|
|
||||||
# Allow netbird UI installation for x64 arch only
|
# Allow netbird UI installation for x64 arch only
|
||||||
@ -382,6 +390,14 @@ if type uname >/dev/null 2>&1; then
|
|||||||
PACKAGE_MANAGER="pacman"
|
PACKAGE_MANAGER="pacman"
|
||||||
echo "The installation will be performed using pacman package manager"
|
echo "The installation will be performed using pacman package manager"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
else
|
||||||
|
echo "Unable to determine OS type from /etc/os-release"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
;;
|
;;
|
||||||
Darwin)
|
Darwin)
|
||||||
OS_NAME="macos"
|
OS_NAME="macos"
|
||||||
|
Loading…
Reference in New Issue
Block a user