330.news revision 61981
128263Spst#!/bin/sh
228263Spst#
350472Speter# $FreeBSD: head/etc/periodic/daily/330.news 61981 2000-06-23 01:18:31Z brian $
428263Spst#
528263Spst# Expire news articles
628263Spst# (This is present only for backwards compatibility, usually the news
728263Spst# system handles this on its own).
828263Spst
961981Sbrian# If there is a global system configuration file, suck it in.
1061981Sbrian#
1161981Sbrianif [ -r /etc/defaults/periodic.conf ]
1261981Sbrianthen
1361981Sbrian    . /etc/defaults/periodic.conf
1461981Sbrian    source_periodic_confs
1528263Spstfi
1661981Sbrian
1761981Sbriancase "$daily_news_expire_enable" in
1861981Sbrian    [Yy][Ee][Ss])
1961981Sbrian	if [ -f /etc/news.expire ]
2061981Sbrian	then
2161981Sbrian	    echo ""
2261981Sbrian	    echo "Running news.expire:"
2361981Sbrian
2461981Sbrian	    /etc/news.expire
2561981Sbrian	fi;;
2661981Sbrianesac
27