提交 12abd62a 编写于 作者: W Wedge Jarrad

[JENKINS-20407] Make sure dir exists before chmod

Ensures that the directory /var/run/jenkins exists before the installer
script attempts to chmod it.
上级 d1833450
......@@ -54,6 +54,7 @@ case "$1" in
# make sure jenkins can delete everything in /var/cache/jenkins to
# re-explode war. older installations may use /var/run/jenkins
# so make sure that they can delete too.
mkdir -p /var/run/jenkins
chown -R $JENKINS_USER:adm /var/cache/jenkins /var/run/jenkins
chmod -R 750 /var/cache/jenkins /var/run/jenkins
;;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册