]> git.pld-linux.org Git - projects/pld-ftp-admin.git/blob - wwwbin/freshness.sh
Use 'x in dict' syntax, it's more pythonic and has_key() is gone in python3
[projects/pld-ftp-admin.git] / wwwbin / freshness.sh
1 #!/bin/sh
2
3 export LC_ALL=C
4
5 date > $HOME/www/freshness.txt.new
6 /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
7
8 cat $HOME/www/freshness.txt.time >>$HOME/www/freshness.txt.new
9 rm -f $HOME/www/freshness.txt.time
10
11 mv $HOME/www/freshness.txt.new $HOME/www/freshness.txt
12 chmod 644 $HOME/www/freshness.txt
This page took 0.060182 seconds and 3 git commands to generate.