Your IP : 216.73.216.170


Current Path : /var/lib/dpkg/info/
Upload File :
Current File : //var/lib/dpkg/info/libapache2-mod-rpaf.postinst

#!/bin/sh
# This maintainer script was generated by yada

set -e

PACKAGE="libapache2-mod-rpaf"
SOURCE="libapache2-mod-rpaf"
VERSION="0.5-3+squeeze1"

# Package maintainer's commands follow:
reload_apache()
{
    if apache2ctl configtest 2>/dev/null; then
        invoke-rc.d apache2 force-reload || true
    else
        echo "Your apache2 configuration is broken, so we're not restarting it for you."
    fi
}

if [ -n "$2" ]; then
    # we're upgrading. test if we're enabled, and if so, restart to reload the module.
    if [ -e /etc/apache2/mods-enabled/rpaf.load ]; then
        reload_apache
    fi
    exit 0
elif [ -e /etc/apache2/apache2.conf ]; then
    a2enmod rpaf >/dev/null || true
    reload_apache
fi
# End of package maintainer's commands

exit 0