projects
/
postfix-cn.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
postavlja neke tls parametre
[postfix-cn.git]
/
make-aliases-gecos.sh
diff --git
a/make-aliases-gecos.sh
b/make-aliases-gecos.sh
index
f54fe9a
..
b26364c
100755
(executable)
--- a/
make-aliases-gecos.sh
+++ b/
make-aliases-gecos.sh
@@
-27,5
+27,9
@@
getent passwd | awk -F: '
}' > $gecos.dpkg-tmp.$$
}' > $gecos.dpkg-tmp.$$
-cp_mv $gecos.dpkg-tmp.$$ $gecos
-postalias $PA_OPTIONS hash:$gecos
+if ! cmp -s $gecos.dpkg-tmp.$$ $gecos > /dev/null; then
+ cp_mv $gecos.dpkg-tmp.$$ $gecos
+ postalias $PA_OPTIONS hash:$gecos
+else
+ rm -f $gecos.dpkg-tmp.$$
+fi