Skip to content

Commit

Permalink
Make PXE use basename for files fetched from PXEFILELIST (#122)
Browse files Browse the repository at this point in the history
Fixes issue where HTTP package download preserves file path to the
local filesystem, preventing download. Allows PXEFILELIST to present
multiple flie lists dependent on request arguments.

Co-authored-by: N. Davis <[email protected]>
  • Loading branch information
tty72 and N. Davis authored May 3, 2021
1 parent f5e1bed commit 183e212
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion livekitlib
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ download_data_pxe()

if [ "$PROTOCOL" = "http" ]; then
cat "$1/PXEFILELIST" | while read FILE; do
wget -O "$1/$LIVEKITNAME/$FILE" "http://$SERVER:$PORT/$FILE"
wget -O "$1/$LIVEKITNAME/$(basename $FILE)" "http://$SERVER:$PORT/$FILE"
done
else
JOBS=3
Expand Down

0 comments on commit 183e212

Please sign in to comment.