diff --git a/plugins/task_manager/install.sh b/plugins/task_manager/install.sh index 2db35da72a..a5df25b6cc 100755 --- a/plugins/task_manager/install.sh +++ b/plugins/task_manager/install.sh @@ -19,6 +19,14 @@ Install_App() echo '正在安装脚本文件...' > $install_tmp mkdir -p $serverPath/task_manager + if [ -d /usr/bin/apt ]; then + apt install libpcap-dev -y + fi + + if [ -d /usr/bin/yum ]; then + yum install libpcap-devel -y + fi + echo "$VERSION" > $serverPath/task_manager/version.pl echo "安装任务管理器成功" }