[Da-tools-commits] ./da-tools/userdir-ldap-common r402: Use ud-config in ud-replicate to determine emailappend value for the sed statement

Joerg Jaspert joerg at debian.org
Sun May 18 12:05:08 UTC 2008


------------------------------------------------------------
revno: 402
committer: Joerg Jaspert <joerg at debian.org>
branch nick: userdir-ldap-common
timestamp: Sun 2008-05-18 14:05:08 +0200
message:
  Use ud-config in ud-replicate to determine emailappend value for the sed statement
modified:
  debian/changelog
  ud-replicate
-------------- next part --------------
=== modified file 'debian/changelog'
--- a/debian/changelog	2008-05-18 11:53:41 +0000
+++ b/debian/changelog	2008-05-18 12:05:08 +0000
@@ -16,6 +16,8 @@
   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 at debian.org>  Sun, 18 May 2008 13:32:01 +0200
 

=== modified file 'ud-replicate'
--- a/ud-replicate	2008-05-18 11:53:41 +0000
+++ b/ud-replicate	2008-05-18 12:05:08 +0000
@@ -44,6 +44,7 @@
 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 @@
 	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



More information about the Da-tools-commits mailing list