Merge pull request #10841 from lkiesow/allow-bbb-to-manage-rec

Allow user bigbluebutton to delete recordings
This commit is contained in:
Fred Dixon 2020-11-16 19:49:46 -05:00 committed by GitHub
commit 04959f45d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -112,6 +112,13 @@ need_root() {
fi
}
need_root_or_bigbluebutton() {
if [ $EUID != 0 -a "$USER" != 'bigbluebutton']; then
echo "Need to be user root or bigbluebutton to run this option"
exit 1
fi
}
print_header() {
if [ ! $HEADER ]; then
echo
@ -212,7 +219,7 @@ while [ $# -gt 0 ]; do
fi
if [ "$1" = "-delete" -o "$1" = "--delete" ]; then
need_root
need_root_or_bigbluebutton
if [ ! -z "${2}" ]; then
MEETING_ID="${2}"
shift