garlicd: allow nix builders write to the pipes
This commit is contained in:
parent
d4947a40b9
commit
3e2b369e3e
@ -30,12 +30,16 @@ mountdir=$(readlink -f "$mountdir_rel")
|
||||
run="$mountdir/run"
|
||||
completed="$mountdir/completed"
|
||||
|
||||
[ -p "$run" ] || mkfifo "$run"
|
||||
[ -p "$completed" ] || mkfifo "$completed"
|
||||
for fifo in "$run" "$completed"; do
|
||||
if [ ! -e "$fifo" ]; then
|
||||
mkfifo "$fifo"
|
||||
# FIXME: Use more resctrictive permissions
|
||||
chmod 666 "$fifo"
|
||||
fi
|
||||
done
|
||||
|
||||
cd "$bscpkgsdir"
|
||||
|
||||
|
||||
while true; do
|
||||
msg "Waiting for experiments ..."
|
||||
read -r tre < "$run"
|
||||
|
Loading…
Reference in New Issue
Block a user