From 758a4ee01fa47ec3f3c7d100176bd2eddc643606 Mon Sep 17 00:00:00 2001 From: Ping Xiao Date: Tue, 28 Jun 2022 19:26:03 +0800 Subject: [PATCH] fix: add Linx and Red Hat support --- packaging/tools/install_arbi.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packaging/tools/install_arbi.sh b/packaging/tools/install_arbi.sh index a7cb2210b4..9dccfabd43 100755 --- a/packaging/tools/install_arbi.sh +++ b/packaging/tools/install_arbi.sh @@ -74,12 +74,21 @@ elif echo $osinfo | grep -qwi "debian" ; then elif echo $osinfo | grep -qwi "Kylin" ; then # echo "This is Kylin system" os_type=1 +elif echo $osinfo | grep -qwi "Red"; then + # echo "This is Red Hat system" + os_type=1 elif echo $osinfo | grep -qwi "centos" ; then # echo "This is centos system" os_type=2 elif echo $osinfo | grep -qwi "fedora" ; then # echo "This is fedora system" os_type=2 +elif echo $osinfo | grep -qwi "Linx"; then + # echo "This is Linx system" + os_type=1 + service_mod=0 + initd_mod=0 + service_config_dir="/etc/systemd/system" else echo " osinfo: ${osinfo}" echo " This is an officially unverified linux system," -- GitLab