From fb6f209c29b908328304d48bb22c8f6c9385ca81 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Tue, 7 Dec 2004 16:04:14 +0000 Subject: Fail only on real error (not if no changes). --- localmaildomainupdate | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'localmaildomainupdate') diff --git a/localmaildomainupdate b/localmaildomainupdate index 544f0ae..a723649 100755 --- a/localmaildomainupdate +++ b/localmaildomainupdate @@ -3,7 +3,7 @@ # /usr/local/sbin/localmaildomainupdate # Copyright 2004 Jonas Smedegaard # -# $Id: localmaildomainupdate,v 1.1 2004-08-19 14:40:32 jonas Exp $ +# $Id: localmaildomainupdate,v 1.2 2004-12-07 16:04:14 jonas Exp $ # # Update an (already prepared!) mailuser file # @@ -23,7 +23,7 @@ fi ( cd /etc/postfix - diff $@ $virtualfile $virtualfile.new + diff $@ $virtualfile $virtualfile.new || if [ $? = 1 ]; then /bin/true; fi echo -n "Above is the intended changes. OK to update (y/N)? " read do_update case $do_update in -- cgit v1.2.3