提交 8d23f536 编写于 作者: K Kohsuke Kawaguchi

explaining why -type l is needed instead of -P, which is the default

上级 90997a6b
......@@ -37,6 +37,8 @@ case "$1" in
find /var/lib/hudson -path "*jobs" -prune -o -type l -prune -o -exec chown hudson:adm {} + || true
chown -R hudson:adm /var/run/hudson /var/log/hudson
# 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
chmod -R 750 /var/run/hudson
chmod 750 /var/log/hudson
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册