Virtualmin GIT Repo Module - CentOS 7

Hi,

I was having an issue with the Virtualmin GIT Repo Module working properly, so I reviewed some configs and came across this:

vi /usr/libexec/webmin/virtualmin-git/postinstall.pl

use strict; use warnings; our %gconfig;

do 'virtualmin-git-lib.pl';

sub module_install {

Remove apache config that overrides gitweb on CentOS

if ($gconfig{'os_type'} eq 'redhat-linux') { &unlink_file("/etc/httpd/conf.d/git.conf"); } }

[root@ns2 virtualmin-git]# ls -al /etc/httpd/conf.d/

total 60 drwxr-xr-x. 2 root root 4096 May 15 15:35 .

drwxr-xr-x. 5 root root 4096 May 10 21:49 ..

-rw-r--r-- 1 root root 2926 May 9 22:42 autoindex.conf

-rw-r--r--. 1 root root 1210 Apr 26 20:00 awstats.conf

-rw-r--r--. 1 root root 401 Dec 1 13:31 fcgid.conf

-rw-r--r-- 1 root root 139 Apr 10 16:23 git.conf

-rw-r--r--. 1 root root 702 Apr 26 20:00 php.conf

-rw-r--r-- 1 root root 366 May 9 22:45 README

-rw-r--r-- 1 root root 9475 May 9 21:28 ssl.conf

-rw-r--r-- 1 root root 5 May 9 21:28 ssl.conf.lock

-rw-r--r--. 1 root root 1231 Apr 26 20:00 userdir.conf

-rw-r--r--. 1 root root 302 Jan 12 2017 webalizer.conf

-rw-r--r--. 1 root root 839 Apr 26 20:00 welcome.conf

I removed git.conf and restarted apache, which resolved the issue. Not sure what might have happened, maybe the postinstall.pl script didn't work?

Thanks,

Status: 
Active

Comments

Assigned: Unassigned ยป