summaryrefslogtreecommitdiffstats
path: root/etc/periodic
diff options
context:
space:
mode:
authorgshapiro <gshapiro@FreeBSD.org>2000-08-13 18:38:58 +0000
committergshapiro <gshapiro@FreeBSD.org>2000-08-13 18:38:58 +0000
commit2424c7393a2a912ab1e3678c643b613766634171 (patch)
tree4294d35406d2c7d1d9eee30b7a16a31dd841950f /etc/periodic
parent41161f82cc4b0a8c39d7af562f3b0b19f72e87e2 (diff)
downloadFreeBSD-src-2424c7393a2a912ab1e3678c643b613766634171.zip
FreeBSD-src-2424c7393a2a912ab1e3678c643b613766634171.tar.gz
Complete migration of aliases file to /etc/mail/aliases.
The maintainers of share/examples/diskless/README.TEMPLATING and mergemaster have been contacted so those may be updated as well.
Diffstat (limited to 'etc/periodic')
-rwxr-xr-xetc/periodic/daily/210.backup-aliases10
1 files changed, 5 insertions, 5 deletions
diff --git a/etc/periodic/daily/210.backup-aliases b/etc/periodic/daily/210.backup-aliases
index 8122b4c3..0b5206e 100755
--- a/etc/periodic/daily/210.backup-aliases
+++ b/etc/periodic/daily/210.backup-aliases
@@ -13,7 +13,7 @@ fi
case "$daily_backup_aliases_enable" in
[Yy][Ee][Ss])
- if [ -f /etc/aliases ]
+ if [ -f /etc/mail/aliases ]
then
bak=/var/backups
@@ -23,15 +23,15 @@ case "$daily_backup_aliases_enable" in
if [ ! -f $bak/aliases.bak ]
then
echo "no $bak/aliases.bak"
- cp -p /etc/aliases $bak/aliases.bak
+ cp -p /etc/mail/aliases $bak/aliases.bak
fi
- if ! cmp -s $bak/aliases.bak /etc/aliases
+ if ! cmp -s $bak/aliases.bak /etc/mail/aliases
then
echo "$host aliases diffs:"
- diff -u $bak/aliases.bak /etc/aliases
+ diff -u $bak/aliases.bak /etc/mail/aliases
mv $bak/aliases.bak $bak/aliases.bak2
- cp -p /etc/aliases $bak/aliases.bak
+ cp -p /etc/mail/aliases $bak/aliases.bak
fi
fi;;
esac
OpenPOWER on IntegriCloud