[Da-tools-commits] ./debian/userdir-ldap r379: Create /var/lib/misc/thishost as a symlink to the hostname in postinst

Peter Palfrader peter at palfrader.org
Wed Apr 16 12:08:46 UTC 2008


------------------------------------------------------------
revno: 379
committer: Peter Palfrader <peter at palfrader.org>
branch nick: userdir-ldap
timestamp: Wed 2008-04-16 14:08:46 +0200
message:
  Create /var/lib/misc/thishost as a symlink to the hostname in postinst
added:
  debian/postrm
modified:
  debian/changelog
  debian/postinst
-------------- next part --------------
=== modified file 'debian/changelog'
--- a/debian/changelog	2008-01-10 15:03:07 +0000
+++ b/debian/changelog	2008-04-16 12:08:46 +0000
@@ -12,6 +12,7 @@
   * ud-roleadd: Do not try to make role accounts of objectClass
     inetOrgPerson, that doesn't work.
   * Add myself to uploaders.
+  * Create /var/lib/misc/thishost as a symlink to the hostname in postinst.
 
   [ Mark Hymers ]
   * ud-userimport, ud-groupadd, ud-roleadd, ud-useradd, userdir_ldap.py:
@@ -60,7 +61,7 @@
   * Build manpages at build time (add Build-Depend on yodl)
   * Install built manpages
 
- -- Stephen Gran <sgran at debian.org>  Mon, 07 Jan 2008 01:50:15 +0000
+ -- Peter Palfrader <weasel at debian.org>  Wed, 16 Apr 2008 14:05:44 +0200
 
 userdir-ldap (0.3.15) unstable; urgency=low
 

=== modified file 'debian/postinst'
--- a/debian/postinst	2007-08-12 17:40:32 +0000
+++ b/debian/postinst	2008-04-16 12:08:46 +0000
@@ -4,5 +4,9 @@
 if [ "$1" = "configure" ]
 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`" /var/lib/misc/thishost
+    fi
 fi
 exit 0

=== added file 'debian/postrm'
--- a/debian/postrm	1970-01-01 00:00:00 +0000
+++ b/debian/postrm	2008-04-16 12:08:46 +0000
@@ -0,0 +1,10 @@
+#! /bin/bash -e
+#
+#DEBHELPER#
+if [ "$1" = "purge" ]
+then
+    if [ -L /var/lib/misc/thishost ]; then
+	rm /var/lib/misc/thishost
+    fi
+fi
+exit 0



More information about the Da-tools-commits mailing list