==================================================================
Please DO NOT REPLY to this mail or send email to the developers
about this bug. Please follow-up to Bugzilla using this link:
https://bugs.contribs.org/show_bug.cgi?id=9217
Have you checked the Frequently Asked Questions (FAQ)?
http://wiki.contribs.org/SME_Server:Documentation:FAQ
Please also take the time to read the following useful guide:
http://www.chiark.greenend.org.uk/~sgtatham/bugs.html
==================================================================
--- Comment #11 from Marco Hess <[email protected]> ---
The export auth hook is run for every repository and those variables are
correct where they are.
But you are right that the the info from the NetworksDB can be cached in the
gitweb.conf so that run time access to the NetworksDB is not needed.
A new template fragment 22LocalIPAddress:
{
# Retrieve the server local IP address
use esmith::NetworksDB;
my $networks_db = esmith::NetworksDB->open_ro() or
die "Could not open the NetworksDB";
# Get server private IP address and mask for access to the local network only
my $network_setting = $networks_db->local_access_spec('private');
$OUT .= "# The server local IP address and mask\n";
$OUT .= "\$local_network_setting = \"" . $network_setting . "\"\;\n\n";
}
And then in: 60ExportAuthHook:
my @network_setting = split( /[\/ ]/, $local_network_setting );
And removing the NetworkDB lines.
Then the only extra event that I can think of is: update-ifcfg
The chmod setting is done in smeserver-git and will need to be cleaned up
there.
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
Mail for each SME Contribs bug report
To unsubscribe, e-mail [email protected]
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/