diff options
author | Jonas Smedegaard <dr@jones.dk> | 2008-05-25 17:45:47 +0000 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2008-05-25 17:45:47 +0000 |
commit | 3916261fdf751705766ce004260584366212316c (patch) | |
tree | 8255bda4d22c3c9ae60982da63cec61af82b5315 | |
parent | f4ac06b2f11826ffc47df10cbd760ea05f41ac41 (diff) |
Silence needs_restart test and move it down right before its only use.
-rwxr-xr-x | postfix/postfix.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/postfix/postfix.sh b/postfix/postfix.sh index aa12d7a..10d041e 100755 --- a/postfix/postfix.sh +++ b/postfix/postfix.sh @@ -3,7 +3,7 @@ # /etc/local-COMMON/postfix/postfix.sh # Copyright 2002-2007 Jonas Smedegaard <dr@jones.dk> # -# $Id: postfix.sh,v 1.72 2008-05-25 17:42:18 jonas Exp $ +# $Id: postfix.sh,v 1.73 2008-05-25 17:45:47 jonas Exp $ # # Auto-tweak plain installed postfix Debian package # @@ -327,7 +327,6 @@ EOF fi diff -ruN "$confdir" "$tempdir" || if [ $? -gt 1 ]; then exit $?; else needs_reload="1"; fi -diff "$confdir/master.cf" "$tempdir/master.cf" || if [ $? -gt 1 ]; then exit $?; else needs_restart="1"; fi if [ "$force" = "1" ]; then do_update="y" @@ -349,6 +348,7 @@ case $do_update in postmap "$confdir/$file" done + diff -q "$confdir/master.cf" "$tempdir/master.cf" || if [ $? -gt 1 ]; then exit $?; else needs_restart="1"; fi if [ "1" = "$needs_restart" ]; then invoke-rc.d postfix restart else |