summaryrefslogtreecommitdiff
path: root/localmaildomainupdate
diff options
context:
space:
mode:
Diffstat (limited to 'localmaildomainupdate')
-rwxr-xr-xlocalmaildomainupdate10
1 files changed, 7 insertions, 3 deletions
diff --git a/localmaildomainupdate b/localmaildomainupdate
index d46aaa1..dbe7bff 100755
--- a/localmaildomainupdate
+++ b/localmaildomainupdate
@@ -1,9 +1,9 @@
#!/bin/sh
#
# /usr/local/sbin/localmaildomainupdate
-# Copyright 2004 Jonas Smedegaard <dr@jones.dk>
+# Copyright 2004-2006 Jonas Smedegaard <dr@jones.dk>
#
-# $Id: localmaildomainupdate,v 1.3 2006-05-05 10:31:13 jonas Exp $
+# $Id: localmaildomainupdate,v 1.4 2006-10-30 12:34:31 jonas Exp $
#
# Update an (already prepared!) mailuser file
#
@@ -23,7 +23,11 @@ fi
(
cd /etc/postfix
- diff $@ $virtualfile $virtualfile.new || if [ $? = 1 ]; then /bin/true; fi
+ localmkpostfixvirtual $maildomain > $virtualfile.new
+ if [ -f /etc/postfix/$virtualfile.addon ]; then
+ cat /etc/postfix/$virtualfile.addon >> $virtualfile.new
+ fi
+ diff $@ $virtualfile $virtualfile.new || if [ $? -eq 1 ]; then /bin/true; fi
echo -n "Above is the intended changes. OK to update (y/N)? "
read do_update
case $do_update in