Merge claude/1
This commit is contained in:
commit
d071696fa4
@ -143,8 +143,11 @@ setupTaskDir() {
|
|||||||
# it. Create-if-absent to keep a stable inode for flock across restarts.
|
# it. Create-if-absent to keep a stable inode for flock across restarts.
|
||||||
[[ -e "$LOCK_FILE" ]] || runFileOp install -m 666 /dev/null "$LOCK_FILE" 2>/dev/null
|
[[ -e "$LOCK_FILE" ]] || runFileOp install -m 666 /dev/null "$LOCK_FILE" 2>/dev/null
|
||||||
runFileOp chmod 666 "$LOCK_FILE" 2>/dev/null
|
runFileOp chmod 666 "$LOCK_FILE" 2>/dev/null
|
||||||
|
# Establish ownership with runSystem (root): the unprivileged dir owner can't
|
||||||
|
# reclaim files an earlier run left root/manager-owned (e.g. a root-owned
|
||||||
|
# task_processor.log), which would then block the daemon's log appends.
|
||||||
if [[ -n "$docker_install_user" ]]; then
|
if [[ -n "$docker_install_user" ]]; then
|
||||||
runFileOp chown -R "$docker_install_user":"$docker_install_user" "$TASK_DIR" 2>/dev/null
|
runSystem chown -R "$docker_install_user":"$docker_install_user" "$TASK_DIR" 2>/dev/null
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user