[Da-tools-commits] ./da-tools/userdir-ldap-turmzimmer r393: Always replace "thishost" on configuration

Andreas Barth aba at not.so.argh.org
Fri May 16 18:08:07 UTC 2008


------------------------------------------------------------
revno: 393
committer: Andreas Barth <aba at not.so.argh.org>
branch nick: userdir-ldap-turmzimmer
timestamp: Fri 2008-05-16 18:08:07 +0000
message:
  Always replace "thishost" on configuration
modified:
  debian/changelog
  debian/postinst
-------------- next part --------------
=== modified file 'debian/changelog'
--- a/debian/changelog	2008-05-16 18:06:23 +0000
+++ b/debian/changelog	2008-05-16 18:08:07 +0000
@@ -2,6 +2,8 @@
 
   * Release for turmzimmer.net
   * Enable generation of authorized_keys
+  * Always replace "thishost" on configuration (helps in case your domain
+    changed)
 
  -- Andreas Barth <aba at not.so.argh.org>  Fri, 16 May 2008 18:35:19 +0000
 

=== modified file 'debian/postinst'
--- a/debian/postinst	2008-04-16 14:20:46 +0000
+++ b/debian/postinst	2008-05-16 18:08:07 +0000
@@ -5,8 +5,6 @@
 then
     test ! -f /usr/local/bin/ud-replicate || rm -f /usr/local/bin/ud-replicate
 
-    if ! [ -e /var/lib/misc/thishost ]; then
-	ln -s "`hostname -f`" /var/lib/misc/thishost
-    fi
+    ln -fs "`hostname -f`" /var/lib/misc/thishost
 fi
 exit 0



More information about the Da-tools-commits mailing list