How to use use finalize.sh script inside jibri container with rclone

I’m trying to use rclone with jibri finalize.sh script. I followed this guide and successfully able to copy the files to google drive but I ran it outside docker container(manually running the rclone command to copy the recording). Since I’m running jibri docker container then Please guide me how can I use rclone in finalize.sh script.

first thing I know that I have to setup rclone in jibri container but I’m having a hard luck setting it up. if someone already tried it then please share the steps.

I tried to run finalize.sh script but I’m getting below error.


Cannot run program "/config/jibri/finalize.sh": error=2, No such file or directory with stack:
java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
org.jitsi.jibri.util.ProcessWrapper.start(ProcessWrapper.kt:87)
org.jitsi.jibri.service.impl.FileRecordingJibriService.finalize(FileRecordingJibriService.kt:207)
org.jitsi.jibri.service.impl.FileRecordingJibriService.stop(FileRecordingJibriService.kt:192)
org.jitsi.jibri.JibriManager.stopService(JibriManager.kt:257)
org.jitsi.jibri.api.xmpp.XmppApi.handleStopJibriIq(XmppApi.kt:256)
org.jitsi.jibri.api.xmpp.XmppApi.handleJibriIq(XmppApi.kt:162)
org.jitsi.jibri.api.xmpp.XmppApi.handleIq(XmppApi.kt:146)
org.jitsi.xmpp.mucclient.MucClient.handleIq(MucClient.java:547)
org.jitsi.xmpp.mucclient.MucClient.access$500(MucClient.java:50)
org.jitsi.xmpp.mucclient.MucClient$2.handleIQRequest(MucClient.java:511)
org.jivesoftware.smack.AbstractXMPPConnection$4.run(AbstractXMPPConnection.java:1188)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
java.lang.Thread.run(Thread.java:748)

but when I check the file inside docker container, it is present

root@e18b455c2622:/# cat /config/jibri/finalize.sh
#! /usr/bin/bash

RECORDINGS_DIR=$1
echo "Recording dir is: $RECORDINGS_DIR"

Please help