finalize_recording refactors and fix

This commit is contained in:
pedro 2022-06-08 18:53:19 +02:00
parent 93e7f04880
commit cf0027240c
2 changed files with 5 additions and 3 deletions

View File

@ -13,6 +13,9 @@ guess_room_name() {
}
move_meeting() {
recording_meeting_path="${1}"
recording_general_path="${2}"
room="${3}"
mkdir -p "${recording_general_path}/${room}/"
mv "${recording_meeting_path}"/*.mp4 "${recording_general_path}/${room}/"
rm "${recording_meeting_path}/metadata.json"
@ -23,8 +26,7 @@ main() {
recording_meeting_path="${1}"
recording_general_path="$(dirname "${1}")"
room="$(guess_room_name "${recording_meeting_path}")"
move_meeting
echo "$0 ${@} ${room}" >> /tmp/thisisatest.log
move_meeting "${recording_meeting_path}" "${recording_general_path}" "${room}"
}
main "${@}"

View File

@ -30,7 +30,7 @@ __line '/etc/modules' --line 'snd_aloop' --onchange 'modprobe snd_aloop'
# thanks https://github.com/emrahcom/emrah-buster-templates/blob/master/machines/eb-jibri-template/usr/local/bin/finalize_recording.sh
__file '/opt/finalize_recording.sh' \
--mode '755' \
--source "${__type}/files/finalize_recordding.sh"
--source "${__type}/files/finalize_recording.sh"
__apt_key 'jitsi_meet' \
--source "${__type}/files/apt-jitsi-keyring.gpg"