#!/bin/sh set -e # Source debconf library . /usr/share/debconf/confmodule # mod_python.load renamed to python.load in 3.3.1-3 test -L /etc/apache2/mods-enabled/mod_python.load && rm -f /etc/apache2/mods-enabled/mod_python.load test -e /etc/apache2/mods-available/mod_python.load && rm -f /etc/apache2/mods-available/mod_python.load PYTHON_LOAD=/etc/apache2/mods-enabled/python.load if [ "$1" = "configure" -o "$1" = "reconfigure" ]; then db_get libapache2-mod-python/enable_module if [ "$RET" = "true" ]; then test ! -e $PYTHON_LOAD -o -L $PYTHON_LOAD && ln -sf ../mods-available/python.load $PYTHON_LOAD else test -L $PYTHON_LOAD && rm -f $PYTHON_LOAD fi fi # Automatically added by dh_pycentral if which pycentral >/dev/null 2>&1; then pycentral pkginstall libapache2-mod-python if grep -qs '^libapache2-mod-python$' /var/lib/pycentral/delayed-pkgs; then sed -i '/^libapache2-mod-python$/d' /var/lib/pycentral/delayed-pkgs fi fi # End automatically added section exit 0