Complete removal of 320.rdist by removing its entry from periodic.conf and

removing the related 220.backup-distfile script and associatd periodic.conf
entry.

Discussed with:	obrien
This commit is contained in:
jhb 2003-04-01 17:45:27 +00:00
parent fe878182e2
commit 4f51bb11c1
2 changed files with 0 additions and 45 deletions

View File

@ -69,9 +69,6 @@ daily_backup_passwd_enable="YES" # Backup passwd & group
# 210.backup-aliases
daily_backup_aliases_enable="YES" # Backup mail aliases
# 220.backup-distfile
daily_backup_distfile_enable="YES" # Backup /etc/Distfile
# 300.calendar
daily_calendar_enable="NO" # Run calendar -a
@ -81,9 +78,6 @@ daily_accounting_compress="NO" # Gzip rotated files
daily_accounting_flags=-q # Flags to /usr/sbin/sa
daily_accounting_save=3 # How many files to save
# 320.distfile
daily_distfile_enable="YES" # Run rdist daily
# 330.news
daily_news_expire_enable="YES" # Run news.expire

View File

@ -1,39 +0,0 @@
#!/bin/sh
#
# $FreeBSD$
#
# If there is a global system configuration file, suck it in.
#
if [ -r /etc/defaults/periodic.conf ]
then
. /etc/defaults/periodic.conf
source_periodic_confs
fi
case "$daily_backup_distfile_enable" in
[Yy][Ee][Ss])
if [ ! -f /etc/Distfile ]
then
echo '$daily_backup_distfile_enable is set but /etc/Distfile' \
"doesn't exist"
rc=2
else
bak=/var/backups
rc=0
echo ""
echo "Backing up /etc/Distfile:"
if ! cmp -s $bak/Distfile.bak /etc/Distfile
then
rc=1
mv $bak/Distfile.bak $bak/Distfile.bak2
cp /etc/Distfile $bak/Distfile.bak || rc=3
fi
fi;;
*) rc=0;;
esac
exit $rc