~ubuntu-branches/ubuntu/raring/modsecurity-apache/raring

« back to all changes in this revision

Viewing changes to debian/libapache2-modsecurity.postinst

  • Committer: Package Import Robot
  • Author(s): Alberto Gonzalez Iniesta
  • Date: 2011-12-28 16:51:11 UTC
  • mfrom: (1.1.3)
  • Revision ID: package-import@ubuntu.com-20111228165111-8elucllauydvcnwx
Tags: 2.6.3-1
* New upstream release
* Include mlogc (still missing manpage). (Closes: #645875)
* postinst: changed force-reload to restart to avoid apache from segfaulting
  when upgrading modsecurity module (Closes: #574376)

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
reload_apache()
6
6
{
7
7
        if apache2ctl configtest 2>/dev/null; then
8
 
                invoke-rc.d apache2 force-reload || true
 
8
                invoke-rc.d apache2 restart || true
9
9
        else
10
10
                echo "Your apache2 configuration is broken, so we're not restarting it for you."
11
11
        fi