Package subversion-server-dav: Скрипты

Post install

# Reconfigure Apache2:
/usr/sbin/a2chkconfig ||:

if [ -e /etc/httpd2/conf/mods-enabled/dav_svn.load ]; then
    CONF_OK=0
    /usr/sbin/apachectl2 configtest && CONF_OK=1 ||:
    if [ "$CONF_OK" = "1" ]; then
        service httpd2 condrestart ||:
    else
        echo "Some errors detected in Apache2 configuration!"
        echo "To use dav_svn_module check configuration and start httpd2 service."
    echo
    fi
else
    echo "Apache2 dav_svn_module module had been installed, but does't enabled."
    echo "Check /etc/httpd2/conf/mods-start.d directory for files with 'dav_svn=no' lines."
    echo
fi
Post uninstall

# Reconfigure Apache2:
/usr/sbin/a2chkconfig ||:
if [ "$1" = "0" ] ; then # last uninstall
    CONF_OK=0
    /usr/sbin/apachectl2 configtest && CONF_OK=1 ||:
    if [ "$CONF_OK" = "1" ]; then
	service httpd2 condrestart ||:
    else
        echo "Some errors detected in Apache2 configuration!"
	echo "To complete dav_svn uninstalling check configuration and restart httpd2 service."
	echo
    fi
fi
Pre uninstall

1
2
3
if [ "$1" = "0" ] ; then # last uninstall
    [ -e /etc/httpd2/conf/mods-enabled/dav_svn.load ] && /usr/sbin/a2dismod dav_svn 2>&1 >/dev/null ||:
fi