~inspirated/arsenal/send-attachments-enforce-mimetype

« back to all changes in this revision

Viewing changes to hooks/data-top-karma

  • Committer: Bryce Harrington
  • Date: 2009-04-14 07:20:37 UTC
  • Revision ID: bryce@canonical.com-20090414072037-8tyqpo3elyy0xl7i
Adding new hook scripts (migrating a few from contrib...) and moving
dependencies into scripts dir.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
 
 
3
if [ -f /etc/arsenal/arsenal.conf ] ; then
 
4
    . /etc/arsenal/arsenal.conf
 
5
fi
 
6
if [ -f /etc/arsenal/site.conf ] ; then
 
7
    . /etc/arsenal/site.conf
 
8
fi
 
9
 
 
10
dir=/home/bryce/top-karma
 
11
date=$(date +%Y%m%d)
 
12
 
 
13
if [ ! -d $dir ] ; then
 
14
   mkdir $dir
 
15
fi
 
16
 
 
17
file=$dir/karma-$date.txt
 
18
 
 
19
/home/bryce/src/Arsenal/arsenal/scripts/top-karma > $file
 
20