提交 51fa0395 编写于 作者: K kohsuke

[FIXED HUDSON-4830] in 1.336. Thanks for the patch!

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@24007 71c3de6d-444a-0410-be80-ed276b4c234a
上级 98fc0056
......@@ -22,9 +22,11 @@ case "$1" in
configure)
# Create hudson user if it doesn't exist.
# sometimes tools that users want Hudson to run need a shell,
# so use /bin/bash. See HUDSON-4830
if ! id hudson > /dev/null 2>&1 ; then
adduser --system --home /var/lib/hudson --no-create-home \
--ingroup nogroup --disabled-password --shell /bin/false \
--ingroup nogroup --disabled-password --shell /bin/bash \
hudson
fi
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册