1#!/bin/sh 2# 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 $ 5# 6# Expire news articles 7# (This is present only for backwards compatibility, usually the news 8# system handles this on its own). 9 10# If there is a global system configuration file, suck it in. 11# 12if [ -r /etc/defaults/periodic.conf ] 13then 14 . /etc/defaults/periodic.conf 15 source_periodic_confs 16fi 17 18case "$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:" 28 29 /etc/news.expire && rc=0 || rc=3 30 fi;; 31 32 *) rc=0;; 33esac 34 35exit $rc 36