summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGoran Mekić <[email protected]>2021-10-20 17:44:37 +0200
committerGitHub <[email protected]>2021-10-20 17:44:37 +0200
commit0444c28379d48d904386348e24d4c5213113b96d (patch)
tree355185a3db0e6d5140c59a35af54667b0ae3f525
parent7c96c45151033e7fd4bf29103f5d6fd482863c43 (diff)
[Feature] Add BSD support (#1801)
-rwxr-xr-xutils/installer/install.sh11
1 files changed, 10 insertions, 1 deletions
diff --git a/utils/installer/install.sh b/utils/installer/install.sh
index b290fec7..8438ad8b 100755
--- a/utils/installer/install.sh
+++ b/utils/installer/install.sh
@@ -146,6 +146,15 @@ function detect_platform() {
RECOMMEND_INSTALL="sudo apt install -y"
fi
;;
+ FreeBSD)
+ RECOMMEND_INSTALL="sudo pkg install -y"
+ ;;
+ NetBSD)
+ RECOMMEND_INSTALL="sudo pkgin install"
+ ;;
+ OpenBSD)
+ RECOMMEND_INSTALL="doas pkg_add"
+ ;;
Darwin)
RECOMMEND_INSTALL="brew install"
;;
@@ -256,7 +265,7 @@ function backup_old_config() {
else
OS="$(uname -s)"
case "$OS" in
- Linux)
+ Linux | *BSD)
cp -r "$dir/"* "$dir.bak/."
;;
Darwin)