MFC: Use humanize_number(3) for -h and -H.
[dragonfly.git] / etc / periodic / daily / 330.news
blob7f300e38041eefbf989649a7e8f40aa54685b6fe
1 #!/bin/sh
3 # $FreeBSD: src/etc/periodic/daily/330.news,v 1.2.2.2 2000/09/20 02:46:15 jkh Exp $
4 # $DragonFly: src/etc/periodic/daily/330.news,v 1.2 2003/06/17 04:24:48 dillon Exp $
6 # Expire news articles
7 # (This is present only for backwards compatibility, usually the news
8 # system handles this on its own).
10 # If there is a global system configuration file, suck it in.
12 if [ -r /etc/defaults/periodic.conf ]
13 then
14 . /etc/defaults/periodic.conf
15 source_periodic_confs
18 case "$daily_news_expire_enable" in
19 [Yy][Ee][Ss])
20 if [ ! -f /etc/news.expire ]
21 then
22 echo '$daily_news_expire_enable is set but /etc/news.expire' \
23 "doesn't exist"
24 rc=2
25 else
26 echo ""
27 echo "Running news.expire:"
29 /etc/news.expire && rc=0 || rc=3
30 fi;;
32 *) rc=0;;
33 esac
35 exit $rc