| 7 |
|
|
| 8 |
# locking |
# locking |
| 9 |
if lockfile -! -l 43200 -r 0 "$crondir/lessoften.lock"; then |
if lockfile -! -l 43200 -r 0 "$crondir/lessoften.lock"; then |
| 10 |
echo `hostname` is unable to start update, lock file exists. |
echo `hostname` is unable to start update, lock file exists. >> $crondir/lessoften.log |
| 11 |
exit 1 |
exit 1 |
| 12 |
fi |
fi |
| 13 |
trap "rm -f $crondir/lessoften.lock" exit |
trap "rm -f $crondir/lessoften.lock" exit |
| 42 |
# previously in parts/1l10ndata, from bouz |
# previously in parts/1l10ndata, from bouz |
| 43 |
cd $crondir/datafiles/ |
cd $crondir/datafiles/ |
| 44 |
echo "updating the database file used to display l10n stats..." >> $crondir/lessoften.log |
echo "updating the database file used to display l10n stats..." >> $crondir/lessoften.log |
| 45 |
wget -q -N http://people.debian.org/~pmachard/l10n/material/data/unstable.gz || { echo "couldn't fetch data/unstable on gluck!"; exit 1; } |
wget -q -N http://people.debian.org/~pmachard/l10n/material/data/unstable.gz || { echo "couldn't fetch data/unstable!" >> $crondir/lessoften.log; exit 1; } |
| 46 |
gunzip -c -f unstable.gz > unstable.gluck |
gunzip -c -f unstable.gz > unstable.gluck |
| 47 |
ln -sf $crondir/datafiles/unstable.gluck $webtopdir/webwml/english/international/l10n/data/unstable.gluck |
ln -sf $crondir/datafiles/unstable.gluck $webtopdir/webwml/english/international/l10n/data/unstable.gluck |
| 48 |
|
|