Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion build/sqled.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
4 changes: 3 additions & 1 deletion build/sqled_with_dms.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
Loading