提交 9ef8a5ca 编写于 作者: M Monty Taylor

Changed the find command to not follow symlinks.

上级 988763b1
......@@ -34,10 +34,10 @@ case "$1" in
# change group/owner to hudson: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 -exec chown hudson:adm {} + || true
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
find /var/lib/hudson -path "*jobs" -prune -o -path "*.ssh" -prune -o -exec chmod 750 {} + || true
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.
先完成此消息的编辑!
想要评论请 注册