Commit d534e14d authored by Leigh B Stoller's avatar Leigh B Stoller

Fix up permissions for mod_fcgid.

parent b12cf44a
......@@ -100,6 +100,16 @@ sub Install($$$)
"Redirect /wikidocs http://users.emulab.net/trac/emulab");
}
}
if (ISBOSSNODE($server)) {
Phase "fcgid-fixup", "Fixing mod_fcgid permissions", sub {
# We run apache as nobody.
PhaseSkip("already fixed")
if (! -e "/var/run/fcgidsock");
ExecQuietFatal("chown nobody:nobody /var/run/fcgidsock");
ExecQuietFatal("chmod 770 /var/run/fcgidsock");
};
}
};
return 0;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment