X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=debian%2Fpostinst;h=31ead9f047260670942a124d4a50b3380f395400;hb=f8181b0dfa59390433a8329e61f0cfbc2f720644;hp=8d1001c35a304d23ee9024751fc1e9612f7d5329;hpb=f05e3f012ab49da19dcd43d29d523e58b20979a8;p=mirror%2Fuserdir-ldap.git diff --git a/debian/postinst b/debian/postinst index 8d1001c..31ead9f 100644 --- a/debian/postinst +++ b/debian/postinst @@ -1,22 +1,10 @@ #! /bin/bash -e # -# Debian postinst script for Python hierarchical modules -# Written by Gregor Hoffleit -# - -PYTHON_VER="2.1" -DIRLIST="/usr/lib/python$PYTHON_VER/site-packages" - -case "$1" in - configure|abort-upgrade|abort-remove|abort-deconfigure) - for i in $DIRLIST ; do - python -O /usr/lib/python$PYTHON_VER/compileall.py -q $i - python /usr/lib/python$PYTHON_VER/compileall.py -q $i - done - ;; - - *) - echo "postinst called with unknown argument \`$1'" >&2 - exit 1 - ;; -esac +#DEBHELPER# +if [ "$1" = "configure" ] +then + if ! [ -e /var/lib/misc/thishost ]; then + ln -s "`hostname -f`" /var/lib/misc/thishost + fi +fi +exit 0