Skip to content

Commit

Permalink
provide meetings_by_team script in git
Browse files Browse the repository at this point in the history
  • Loading branch information
cydrobolt committed Oct 13, 2015
1 parent d647016 commit be8a569
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions files/meetings_by_team.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/bash

# separates meetings by "team" from a single meeting channel folder, and
# places them into separate folders for each team in the $BASELOCATION,
# which needs to be created prior to use

# "teams" are defined by #meetingname when starting a meeting

# edit file with appropriate paths and variables
# to use this script.

# fedmsg_consumer.py references this file at /usr/local/bin/meetings_by_team.sh

BASELOCATION=/srv/web/meetbot/teams
cd $BASELOCATION
cd ..

for f in `find -type f -mtime -30 | grep -v "fedora-meeting\."`
do
teamname=$(basename $f | awk -F. '{ print $1 }' )
mkdir -p $BASELOCATION/$teamname
ln -f -s $PWD/$f $BASELOCATION/$teamname/
done

0 comments on commit be8a569

Please sign in to comment.