From 3916261fdf751705766ce004260584366212316c Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Sun, 25 May 2008 17:45:47 +0000 Subject: Silence needs_restart test and move it down right before its only use. --- postfix/postfix.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'postfix') 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 # -# $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 -- cgit v1.2.3