Fix gitweb link config

We need to set type = gitweb. Also, the gitweb script itself
is in /usr/share from the git package.

Change-Id: I7e73a0ba721ed93e4acf308821ad3efd3d5eb4c8
This commit is contained in:
Monty Taylor 2019-05-02 16:25:23 +00:00
parent 0d533a9a94
commit 7c43778f2f
2 changed files with 5 additions and 4 deletions

View File

@ -303,10 +303,9 @@ class gerrit(
include ::gerrit::user
if ($gitweb) {
package { 'gitweb':
ensure => present,
}
# This is not needed, setting to absent for cleanup
package { 'gitweb':
ensure => absent,
}
package { 'unzip':

View File

@ -194,6 +194,8 @@
<% if @gitweb or @cgit or @gitea -%>
[gitweb]
<% if @gitweb -%>
type = gitweb
cgi = /usr/share/gitweb/gitweb.cgi
revision = "?p=${project}.git;a=commitdiff;h=${commit}"
<% end -%>
<% if @cgit -%>