Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
17 lines (13 sloc)
380 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # mail summary to defaced-summary | |
| cd /home/web/mirror/new/ | |
| if [ -f .summary ]; then | |
| ~munge/bin/summary_stats.pl > .summary~ | |
| mail -s "Defaced Summary for `date +"%Y/%m/%d"`" defaced-summary < .summary~ | |
| mv .summary~ .summary-dayold | |
| > .summary | |
| chmod 660 .summary | |
| chown root.mirror .summary | |
| else | |
| echo "failed" | mail -s "summary posting error" jericho | |
| fi | |