This commit is contained in:
holzi1005 2025-01-07 17:00:43 +01:00
parent 63219bc01d
commit 5a7b11df4c

View file

@ -19,7 +19,7 @@ inotifywait -m /out -e close_write |
while [ $i -lt $num_chunks ]; do while [ $i -lt $num_chunks ]; do
offset=$(( i * chunk_size )) offset=$(( i * chunk_size ))
/bin/dd if="$file_path" bs=$chunk_size skip=$i count=1 2>/dev/null | \ /bin/dd if="$file_path" bs=$chunk_size skip=$i count=1 2>/dev/null | \
/urs/bin/curl --location "$UPLOAD_URL" \ /usr/bin/curl --location "$UPLOAD_URL" \
--header "Authorization: Bearer $AUTH_TOKEN" \ --header "Authorization: Bearer $AUTH_TOKEN" \
--form "recording_id=${id}" \ --form "recording_id=${id}" \
--form "chunk_index=${i}" \ --form "chunk_index=${i}" \