Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
jenkins
提交
b167b984
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,发现更多精彩内容 >>
提交
b167b984
编写于
1月 31, 2011
作者:
M
Monty Taylor
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Deal with file existence in the proper order.
上级
f1f083a4
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
17 addition
and
9 deletion
+17
-9
debian/debian/dirs
debian/debian/dirs
+1
-1
debian/debian/jenkins.postinst
debian/debian/jenkins.postinst
+15
-7
debian/debian/jenkins.postrm
debian/debian/jenkins.postrm
+1
-1
未找到文件。
debian/debian/dirs
浏览文件 @
b167b984
...
...
@@ -5,7 +5,7 @@ usr/sbin
usr/share/jenkins
# this is where JENKINS_HOME is stored, so let's leave it as is for now
var/lib/
hudson
var/lib/
jenkins
# Need to create jenkins's own directory to track the pid since the daemon is not run as root
# and doesn't have permission to write the pid to /var/run (which would be the preferred location).
...
...
debian/debian/jenkins.postinst
浏览文件 @
b167b984
...
...
@@ -21,11 +21,6 @@ set -e
case
"
$1
"
in
configure
)
# 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
...
...
@@ -33,9 +28,22 @@ case "$1" in
adduser
--system
--home
/var/lib/jenkins
--no-create-home
\
--ingroup
nogroup
--disabled-password
--shell
/bin/bash
\
jenkins
find /var/lib/jenkins
-user
hudson
-exec
chown
jenkins
{}
+
||
true
fi
# If we have an old hudson install, rename it to jenkins
if
test
-d
/var/lib/hudson
;
then
# We need to ensure that the .??* wildcard matches something
touch
/var/lib/hudson/.moving-hudson
mv
-f
/var/lib/hudson/
*
/var/lib/hudson/.??
*
/var/lib/jenkins
rmdir
/var/lib/hudson
rm
/var/lib/jenkins/.moving-hudson
find /var/lib/jenkins
-user
hudson
-exec
chown
jenkins
{}
+
||
true
fi
if
test
-d
/var/run/hudson
;
then
mv
-f
/var/run/hudson/
*
/var/run/jenkins
rmdir
/var/run/hudson
fi
# Fix permissions on runtime directories/files.
# 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
...
...
@@ -51,7 +59,7 @@ case "$1" in
# delete old hudson user if it's still here
if
id
hudson
>
/dev/null 2>&1
;
then
deluser
hudson
||
true
userdel
hudson
||
true
fi
;;
...
...
debian/debian/jenkins.postrm
浏览文件 @
b167b984
...
...
@@ -22,7 +22,7 @@ set -e
case
"
$1
"
in
purge
)
userdel
hudson
||
true
userdel
jenkins
||
true
# TODO: remove log files rm -rf /var/log/jenkins
;;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录