Skip to content
Snippets Groups Projects
Unverified Commit 7a590699 authored by Lars Kiesow's avatar Lars Kiesow
Browse files

Allow user bigbluebutton to delete recordings

This patch modifies `bbb-record` allowing the user `bigbluebutton` to
delete recordings. The user has all necessary access rights, meaning
that the deletion works without a problem and the check for root does
not protect anything. The users owns the data after all. The current
check just makes things less convenient.
parent 18b75285
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment