From b0014c0477c3d67e021a2593dc142bb2db110061 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Thu, 11 Jul 2024 04:37:55 +0800 Subject: [PATCH] Update install.sh --- plugins/simpleping/install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/simpleping/install.sh b/plugins/simpleping/install.sh index 67d3e8f11..7f7836160 100755 --- a/plugins/simpleping/install.sh +++ b/plugins/simpleping/install.sh @@ -12,7 +12,7 @@ sysName=`uname` VERSION=$2 # 开启可以PING -sysctl -w net.ipv4.ping_group_range="0 2147483647" + install_tmp=${rootPath}/tmp/mw_install.pl @@ -25,6 +25,8 @@ Install_App() name=linux if [ "$sysName" == "Darwin" ];then name="darwin" + else + sysctl -w net.ipv4.ping_group_range="0 2147483647" fi if [ "$ARCH" == "x86_64" ];then