Use ud-config in ud-replicate to determine emailappend value for the sed statement
authorJoerg Jaspert <joerg@debian.org>
Sun, 18 May 2008 12:05:08 +0000 (14:05 +0200)
committerJoerg Jaspert <joerg@debian.org>
Sun, 18 May 2008 12:05:08 +0000 (14:05 +0200)
debian/changelog
ud-replicate

index 9cd0018..55f5952 100644 (file)
@@ -16,6 +16,8 @@ userdir-ldap (0.3.25+common1) unstable; urgency=low
   hardcoded list
   * Use add_keyrings from config file in ud-useradd instead of a
   hardcoded list
+  * Use ud-config to get the emailappend value in ud-replicate, no longer
+  hardcoding @debian.org
 
  -- Joerg Jaspert <joerg@debian.org>  Sun, 18 May 2008 13:32:01 +0200
 
index a9e294b..3601b32 100755 (executable)
@@ -44,6 +44,7 @@ export PATH
 HOST=`hostname -f`
 SYNCHOST=`ud-config synchost`;
 LOCALSYNCON=`ud-config localsyncon`;
+EMAILAPPEND=`ud-config emailappend`;
 cd /tmp/
 cd /var/lib/misc || cd /var/state/glibc/ || cd /var/db/
 lockfile -r 1 -l 3600 lock
@@ -120,6 +121,6 @@ if [ -d "/etc/exim4" -a -e "$HOST/bsmtp" ]; then
        fi
 fi
 if [ -d "/etc/postfix" -a -f "$HOST/forward-alias" ]; then
-       sed -e 's/:/@debian.org/' $HOST/forward-alias > /etc/postfix/debian
+       sed -e "s/:/@$EMAILAPPEND/" $HOST/forward-alias > /etc/postfix/debian
        /usr/sbin/postmap hash:/etc/postfix/debian < /etc/postfix/debian || true
 fi