Use the *much* more readable unified diff format.
This commit is contained in:
parent
1752e66d49
commit
4b99719cb0
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user