fix directory

This commit is contained in:
holzi1005 2025-01-07 16:38:27 +01:00
parent a451fa8306
commit af3eb676f1
2 changed files with 4 additions and 3 deletions

View file

@ -16,7 +16,9 @@ LABEL version="${VERSION}" \
COPY inotify.sh /inotify.sh
RUN chmod +x /inotify.sh
RUN mkdir /out \
chmod +x /inotify.sh \
chown -R nobody /out
RUN apk --no-cache add \
inotify-tools \
@ -26,7 +28,6 @@ RUN apk --no-cache add \
USER nobody
ENV CHUNK_SIZE=1048576 \
WATCH_PATH=/opt/livekit-egress \
UPLOAD_URL=http://localhost:8000/recording/upload \
AUTH_TOKEN=verySecretToken

View file

@ -1,6 +1,6 @@
#!/bin/sh
inotifywait -m "$WATCH_PATH" -e close_write |
inotifywait -m /out -e close_write |
while read PATH ACTION FILE; do
if [[ "${FILE}" == *.mp4 ]]