/[smecontribs]/rpms/smeserver-git/contribs9/smeserver-git-1.2.0.bz10464-warn-on-missing-files.patch
ViewVC logotype

Contents of /rpms/smeserver-git/contribs9/smeserver-git-1.2.0.bz10464-warn-on-missing-files.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Tue Nov 28 23:58:34 2017 UTC (7 years ago) by jpp
Branch: MAIN
CVS Tags: smeserver-git-1_2_0-2_el6_sme, HEAD
* Tue Nov 28 2017 Jean-Philipe Pialasse <tests@pialasse.com> 1.2.0-2.sme
- fix smeserver-git prevents httpd.conf template expansion  [SME: 10464]
- now if gitweb is enabled but smeserver-gitweb is not installed a warning is issued
instead of an error and template consider it disabled. Same thing if gitweb_theme is enabled
but smeserver-gitweb-theme is missing.

1 diff -Nur smeserver-git-1.2.0.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/29GitRepositories smeserver-git-1.2.0/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/29GitRepositories
2 --- smeserver-git-1.2.0.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/29GitRepositories 2017-11-28 17:50:06.000000000 -0500
3 +++ smeserver-git-1.2.0/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/29GitRepositories 2017-11-28 18:41:51.662000000 -0500
4 @@ -130,12 +130,14 @@
5 $GitWebCSS = "";
6 }
7 else {
8 - die "Gitweb is enabled in /usr/share/gitweb, but could not find 'gitweb.css'!\n";
9 + $gitweb_theme="disabled";
10 + warn "Gitweb is enabled in /usr/share/gitweb, but could not find 'gitweb.css'!Please install smeserver-gitweb-theme if you need it.\n";
11 }
12 }
13 elsif( -e "/var/www/git/gitweb.cgi" ) {
14 # Git 1.8+
15 $GitWebRoot = "/var/www/git";
16 + # check if smeserver-gitweb-theme is installed
17 if( -e "/var/www/git/static/gitweb.css" ) {
18 $GitWebCSS = "/static";
19 }
20 @@ -143,11 +145,13 @@
21 $GitWebCSS = "";
22 }
23 else {
24 - die "Gitweb is enabled in /var/www/git, but could not find 'gitweb.css'!\n";
25 + $gitweb_theme="disabled";
26 + warn "Gitweb is enabled in /var/www/git, but could not find 'gitweb.css'! Please install smeserver-gitweb-theme if you need it.\n";
27 }
28 }
29 else {
30 - die "Gitweb is enabled, but could not find 'gitweb.cgi'!\n";
31 + $gitweb="disabled";
32 + warn "Gitweb is enabled in your configuration, but could not find 'gitweb.cgi'! Considering it as disabled. Please install smeserver-gitweb if you need it.\n";
33 }
34 }
35

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed