~ubuntu-branches/ubuntu/jaunty/apache2/jaunty

« back to all changes in this revision

Viewing changes to debian/apache2.2-common.bug.script

  • Committer: Bazaar Package Importer
  • Author(s): Kees Cook
  • Date: 2008-08-28 08:10:59 UTC
  • Revision ID: james.westby@ubuntu.com-20080828081059-8tflu7six9l2a0w4
Tags: 2.2.9-7ubuntu1
* Merge from debian unstable, remaining changes:
  - debian/{control,rules}: enable PIE hardening.
  - debian/{control,rules,apache2.2-common.ufw.profile}: add ufw profiles.

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
my $res = `$apache -t 2>&1`;
11
11
my @modules;
12
12
if ($res !~ "Syntax OK") {
13
 
        print $out "Config file syntax check failed.\n";
 
13
        # if we are not root, syntax check will fail because ssl private keys
 
14
        # are not readable
 
15
        print $out "Config file syntax check failed.\n" if $> == 0;
14
16
        @modules = sort glob("/etc/apache2/mods-enabled/*.load");
15
17
        map { s{^/etc/apache2/mods-enabled/(.*)\.load$}{$1} } @modules;
16
18
        print $out "List of /etc/apache2/mods-enabled/*.load:\n";