From 3e2f1fb66e05bd75d92507bd1f62e10017e4688a Mon Sep 17 00:00:00 2001 From: yuanjiawei Date: Fri, 1 Nov 2024 16:03:29 +0800 Subject: [PATCH] feat: add arthas --- build/sqled.spec | 4 +++- build/sqled_with_dms.spec | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/build/sqled.spec b/build/sqled.spec index bef3d87ee9..4bcaca8fa1 100644 --- a/build/sqled.spec +++ b/build/sqled.spec @@ -70,8 +70,10 @@ fi (which bash 1>/dev/null 2>&1) || (echo "require bash" && exit 12) (which pkill 1>/dev/null 2>&1) || (echo "require pkill" && exit 13) (getent group %{group_name} 1>/dev/null 2>&1) || groupadd -g 5700 %{group_name} -(id %{user_name} 1>/dev/null 2>&1) || (useradd -M -g %{group_name} -s $(which nologin) -u 5700 %{user_name} && chage -M 99999 %{user_name}) +(id %{user_name} 1>/dev/null 2>&1) || (useradd -M -g %{group_name} -s /bin/bash -u 5700 %{user_name} && chage -M 99999 %{user_name}) +#arthas +curl https://arthas.aliyun.com/arthas-boot.jar -o $RPM_INSTALL_PREFIX/arthas-boot.jar #check bash env bash -c "" 2>&1 | grep -e 'warning' -e 'error' diff --git a/build/sqled_with_dms.spec b/build/sqled_with_dms.spec index 973087a9b7..f08c5c7a70 100644 --- a/build/sqled_with_dms.spec +++ b/build/sqled_with_dms.spec @@ -79,8 +79,10 @@ fi (which bash 1>/dev/null 2>&1) || (echo "require bash" && exit 12) (which pkill 1>/dev/null 2>&1) || (echo "require pkill" && exit 13) (getent group %{group_name} 1>/dev/null 2>&1) || groupadd -g 5700 %{group_name} -(id %{user_name} 1>/dev/null 2>&1) || (useradd -M -g %{group_name} -s $(which nologin) -u 5700 %{user_name} && chage -M 99999 %{user_name}) +(id %{user_name} 1>/dev/null 2>&1) || (useradd -M -g %{group_name} -s /bin/bash -u 5700 %{user_name} && chage -M 99999 %{user_name}) +#arthas +curl https://arthas.aliyun.com/arthas-boot.jar -o $RPM_INSTALL_PREFIX/arthas-boot.jar #check bash env bash -c "" 2>&1 | grep -e 'warning' -e 'error'