Your IP : 216.73.216.170


Current Path : /proc/8644/root/proc/self/root/var/lib/dpkg/info/
Upload File :
Current File : //proc/8644/root/proc/self/root/var/lib/dpkg/info/python2.6.postinst

#! /bin/sh -e

if [ "$1" = configure ]; then
    (
    files=$(dpkg -L python2.6 | sed -n '/^\/usr\/lib\/python2.6\/.*\.py$/p')
	python2.6 /usr/lib/python2.6/py_compile.py $files
	if grep -sq '^byte-compile[^#]*optimize' /etc/python/debian_config; then
	    python2.6 -O /usr/lib/python2.6/py_compile.py $files
	fi
    )
fi

case "$1" in
    configure|abort-upgrade|abort-remove|abort-deconfigure)

        # Create empty directories in /usr/local
        if [ ! -e /usr/local/lib/python2.6 ]; then
            mkdir -p /usr/local/lib/python2.6 2> /dev/null || true
            chmod 2775 /usr/local/lib/python2.6 2> /dev/null || true
            chown root:staff /usr/local/lib/python2.6 2> /dev/null || true
        fi
        if [ ! -e /usr/local/lib/python2.6/site-packages ]; then
            mkdir -p /usr/local/lib/python2.6/site-packages 2> /dev/null || true
            chmod 2775 /usr/local/lib/python2.6/site-packages 2> /dev/null || true
            chown root:staff /usr/local/lib/python2.6/site-packages 2> /dev/null || true
        fi
    ;;

    *)
        echo "postinst called with unknown argument \`$1'" >&2
        exit 1
    ;;
esac

# Automatically added by dh_installmenu
if [ "$1" = "configure" ] && [ -x "`which update-menus 2>/dev/null`" ]; then
	update-menus
fi
# End automatically added section


exit 0


Warning: Unknown: open(/var/www/iplanru/data/bin-tmp/sess_d5f482fa92c84ec13e2db5b1ebddc1b7, O_RDWR) failed: No space left on device (28) in Unknown on line 0

Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/www/iplanru/data/bin-tmp) in Unknown on line 0