summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>1999-12-28 21:38:12 +0000
committerobrien <obrien@FreeBSD.org>1999-12-28 21:38:12 +0000
commit79ed6d89a60162616c1a1beda6abd09e6f7e43ac (patch)
tree97068905079d25b0d9b43c27f2c18126c6fc966f /etc
parent97c987240866817a96bf644288fc5f8aaeaf0f5a (diff)
downloadFreeBSD-src-79ed6d89a60162616c1a1beda6abd09e6f7e43ac.zip
FreeBSD-src-79ed6d89a60162616c1a1beda6abd09e6f7e43ac.tar.gz
Use the *much* more readable unified diff format.
Diffstat (limited to 'etc')
-rwxr-xr-xetc/periodic/daily/200.backup-passwd4
-rwxr-xr-xetc/periodic/daily/210.backup-aliases2
2 files changed, 3 insertions, 3 deletions
diff --git a/etc/periodic/daily/200.backup-passwd b/etc/periodic/daily/200.backup-passwd
index 43b12a8..d9061c0 100755
--- a/etc/periodic/daily/200.backup-passwd
+++ b/etc/periodic/daily/200.backup-passwd
@@ -15,7 +15,7 @@ if [ -f /etc/master.passwd -o -f /etc/group ] ; then
if cmp -s $bak/master.passwd.bak /etc/master.passwd; then :; else
echo "$host passwd diffs:"
- diff $bak/master.passwd.bak /etc/master.passwd |\
+ diff -u $bak/master.passwd.bak /etc/master.passwd |\
sed 's/^\([<>] [^:]*\):[^:]*:/\1:(password):/'
mv $bak/master.passwd.bak $bak/master.passwd.bak2
cp -p /etc/master.passwd $bak/master.passwd.bak
@@ -28,7 +28,7 @@ if [ -f /etc/master.passwd -o -f /etc/group ] ; then
if cmp -s $bak/group.bak /etc/group; then :; else
echo "$host group diffs:"
- diff $bak/group.bak /etc/group
+ diff -u $bak/group.bak /etc/group
mv $bak/group.bak $bak/group.bak2
cp -p /etc/group $bak/group.bak
fi
diff --git a/etc/periodic/daily/210.backup-aliases b/etc/periodic/daily/210.backup-aliases
index 043c4f5..fa0ae53 100755
--- a/etc/periodic/daily/210.backup-aliases
+++ b/etc/periodic/daily/210.backup-aliases
@@ -15,7 +15,7 @@ if [ -f /etc/aliases ] ; then
if cmp -s $bak/aliases.bak /etc/aliases; then :; else
echo "$host aliases diffs:"
- diff $bak/aliases.bak /etc/aliases
+ diff -u $bak/aliases.bak /etc/aliases
mv $bak/aliases.bak $bak/aliases.bak2
cp -p /etc/aliases $bak/aliases.bak
fi
OpenPOWER on IntegriCloud