From 1e71eedc19c0b49d78769954acb0e85819ef3876 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Wed, 5 Jun 2024 18:13:40 +0800 Subject: [PATCH] Update install.sh --- plugins/task_manager/install.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/plugins/task_manager/install.sh b/plugins/task_manager/install.sh index a5df25b6cc..ca6548c7da 100755 --- a/plugins/task_manager/install.sh +++ b/plugins/task_manager/install.sh @@ -19,14 +19,18 @@ Install_App() echo '正在安装脚本文件...' > $install_tmp mkdir -p $serverPath/task_manager - if [ -d /usr/bin/apt ]; then + if [ -f /usr/bin/apt ]; then apt install libpcap-dev -y fi - if [ -d /usr/bin/yum ]; then + if [ -f /usr/bin/yum ]; then yum install libpcap-devel -y fi + if [ -f /usr/bin/dnf ]; then + dnf install libpcap-devel -y + fi + echo "$VERSION" > $serverPath/task_manager/version.pl echo "安装任务管理器成功" }