summaryrefslogtreecommitdiff
path: root/wwwbin/freshness.sh
blob: 9fbdb2d7fae221a3b7902669feb833458ff6b97d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

export LC_ALL=C

date > $HOME/www/freshness.txt.new
/usr/bin/time -f '\nElapsed time: %E' -o $HOME/www/freshness.txt.time $HOME/bin/ftp-freshness.py >> $HOME/www/freshness.txt.new 2>/dev/null

cat $HOME/www/freshness.txt.time >>$HOME/www/freshness.txt.new
rm -f $HOME/www/freshness.txt.time

mv $HOME/www/freshness.txt.new $HOME/www/freshness.txt
chmod 644 $HOME/www/freshness.txt