Create /var/lib/misc/thishost as a symlink to the hostname in postinst
[mirror/userdir-ldap.git] / debian / postinst
index e748473..b632e50 100644 (file)
@@ -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