Finalize.sh file

hello all,
I hope you are well
I am new with jibri
I create finalize.sh file with this instructions:

#!/bin/bash


RECORDINGS_DIR=$1
VIDEO_FILE_PATH=$(find $RECORDINGS_DIR -name *.mp4)
VIDEO_FILE_NAME=${VIDEO_FILE_PATH:36}

VIDEO_FOLDER_NAME=${VIDEO_FILE_PATH:19}
FINAL_VIDEO_FOLDER_NAME=${VIDEO_FOLDER_NAME%/*}


mkdir -p /home/jibri/recordings

mv $VIDEO_FILE_PATH /home/jibri/recordings


FINAL_RECORDINGS_DIR=/home/jibri/recordings
FINAL_VIDEO_FILE_PATH=$(find $FINAL_RECORDINGS_DIR -name $FINAL_VIDEO_FOLDER_NAME)


@emrah @damencho thanks in advance

that is my jibri volumes:

 volumes:
          - ${CONFIG}/jibri:/config
          - /dev/shm:/dev/shm

You can put it inside ~.jitsi-meet-cfg/jibri/ and then set the path to /config/finalize.sh in JIBRI_FINALIZE_RECORDING_SCRIPT_PATH