forked from ungleich-public/cdist-contrib
finalize_recording refactors and fix
This commit is contained in:
parent
93e7f04880
commit
cf0027240c
|
@ -13,6 +13,9 @@ guess_room_name() {
|
||||||
}
|
}
|
||||||
|
|
||||||
move_meeting() {
|
move_meeting() {
|
||||||
|
recording_meeting_path="${1}"
|
||||||
|
recording_general_path="${2}"
|
||||||
|
room="${3}"
|
||||||
mkdir -p "${recording_general_path}/${room}/"
|
mkdir -p "${recording_general_path}/${room}/"
|
||||||
mv "${recording_meeting_path}"/*.mp4 "${recording_general_path}/${room}/"
|
mv "${recording_meeting_path}"/*.mp4 "${recording_general_path}/${room}/"
|
||||||
rm "${recording_meeting_path}/metadata.json"
|
rm "${recording_meeting_path}/metadata.json"
|
||||||
|
@ -23,8 +26,7 @@ main() {
|
||||||
recording_meeting_path="${1}"
|
recording_meeting_path="${1}"
|
||||||
recording_general_path="$(dirname "${1}")"
|
recording_general_path="$(dirname "${1}")"
|
||||||
room="$(guess_room_name "${recording_meeting_path}")"
|
room="$(guess_room_name "${recording_meeting_path}")"
|
||||||
move_meeting
|
move_meeting "${recording_meeting_path}" "${recording_general_path}" "${room}"
|
||||||
echo "$0 ${@} ${room}" >> /tmp/thisisatest.log
|
|
||||||
}
|
}
|
||||||
|
|
||||||
main "${@}"
|
main "${@}"
|
||||||
|
|
|
@ -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
|
# 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' \
|
__file '/opt/finalize_recording.sh' \
|
||||||
--mode '755' \
|
--mode '755' \
|
||||||
--source "${__type}/files/finalize_recordding.sh"
|
--source "${__type}/files/finalize_recording.sh"
|
||||||
|
|
||||||
__apt_key 'jitsi_meet' \
|
__apt_key 'jitsi_meet' \
|
||||||
--source "${__type}/files/apt-jitsi-keyring.gpg"
|
--source "${__type}/files/apt-jitsi-keyring.gpg"
|
||||||
|
|
Loading…
Reference in New Issue