Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
jenkins
提交
a1afb8c5
J
jenkins
项目概览
xxadev
/
jenkins
与 Fork 源项目一致
从无法访问的项目Fork
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
J
jenkins
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
a1afb8c5
编写于
1月 31, 2011
作者:
M
Monty Taylor
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Rename the hudson dirs and user to jenkins.
上级
31cd5b3a
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
21 addition
and
11 deletion
+21
-11
debian/debian/jenkins.default
debian/debian/jenkins.default
+3
-3
debian/debian/jenkins.postinst
debian/debian/jenkins.postinst
+18
-8
未找到文件。
debian/debian/jenkins.default
浏览文件 @
a1afb8c5
...
...
@@ -12,13 +12,13 @@ JAVA=/usr/bin/java
PIDFILE=/var/run/jenkins/jenkins.pid
# user id to be invoked as (otherwise will run as root; not wise!)
JENKINS_USER=
hudson
JENKINS_USER=
jenkins
# location of the jenkins war file
JENKINS_WAR=/usr/share/jenkins/jenkins.war
#
hudson
home location
JENKINS_HOME=/var/lib/
hudson
#
jenkins
home location
JENKINS_HOME=/var/lib/
jenkins
# set this to false if you don't want Hudson to run by itself
# in this set up, you are expected to provide a servlet containr
...
...
debian/debian/jenkins.postinst
浏览文件 @
a1afb8c5
...
...
@@ -21,27 +21,37 @@ set -e
case
"
$1
"
in
configure
)
# Create hudson user if it doesn't exist.
# If we have an old hudson install, rename it to jenkins
if
test
-d
/var/lib/hudson
;
then
mv
/var/lib/hudson /var/lib/jenkins
fi
# Create jenkins user if it doesn't exist.
# sometimes tools that users want Jenkins to run need a shell,
# so use /bin/bash. See JENKINS-4830
if
!
id
hudson
>
/dev/null 2>&1
;
then
adduser
--system
--home
/var/lib/
hudson
--no-create-home
\
if
!
id
jenkins
>
/dev/null 2>&1
;
then
adduser
--system
--home
/var/lib/
jenkins
--no-create-home
\
--ingroup
nogroup
--disabled-password
--shell
/bin/bash
\
hudson
jenkins
fi
# Fix permissions on runtime directories/files.
# change group/owner to
hudson
:adm - exclude jobs directory. See HUDSON-4047
# change group/owner to
jenkins
:adm - exclude jobs directory. See HUDSON-4047
# even if it fails on some files, don't let that interfere with the upgrade process
# (that can happen on dangling symlinks, for example.)
find /var/lib/
hudson
-path
"*jobs"
-prune
-o
-type
l
-prune
-o
-exec
chown
hudson
:adm
{}
+
||
true
chown
-R
hudson
:adm /var/run/jenkins /var/log/jenkins
find /var/lib/
jenkins
-path
"*jobs"
-prune
-o
-type
l
-prune
-o
-exec
chown
jenkins
:adm
{}
+
||
true
chown
-R
jenkins
:adm /var/run/jenkins /var/log/jenkins
# change mode to 750 - exclude jobs and .ssh directories. See HUDSON-4047
# we prune symlinks instead of -P to avoid chmod/chown getting symlinks as arguments
# (which ends up changing the target of the symlink, even though it's not recursive)
find /var/lib/
hudson
-path
"*jobs"
-prune
-o
-path
"*.ssh"
-prune
-o
-type
l
-prune
-o
-exec
chmod
750
{}
+
||
true
find /var/lib/
jenkins
-path
"*jobs"
-prune
-o
-path
"*.ssh"
-prune
-o
-type
l
-prune
-o
-exec
chmod
750
{}
+
||
true
chmod
-R
750 /var/run/jenkins
chmod
750 /var/log/jenkins
# delete old hudson user if it's still here
if
!
id
hudson
>
/dev/null 2>&1
;
then
userdel hudson
||
true
fi
;;
abort-upgrade|abort-remove|abort-deconfigure
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录