diff options
author | Jonas Smedegaard <dr@jones.dk> | 2004-12-07 16:04:14 +0000 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2004-12-07 16:04:14 +0000 |
commit | fb6f209c29b908328304d48bb22c8f6c9385ca81 (patch) | |
tree | 4041eb86741994744e365d29819315bae56eb69d /localmaildomainupdate | |
parent | 9504296f5336ff89ae0e5a4aecefee6bc6cc2c6b (diff) |
Fail only on real error (not if no changes).
Diffstat (limited to 'localmaildomainupdate')
-rwxr-xr-x | localmaildomainupdate | 4 |
1 files changed, 2 insertions, 2 deletions
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 <dr@jones.dk> # -# $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 |