[Koha-cvs] CVS: koha/misc Install.pm,1.85,1.86

Paul POULAIN tipaul at users.sourceforge.net
Wed Dec 15 15:39:24 CET 2004


Update of /cvsroot/koha/koha/misc
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5703/misc

Modified Files:
	Install.pm 
Log Message:
fix for http://bugs.koha.org/cgi-bin/bugzilla/show_bug.cgi?id=874
Installer Should ask for apache group

No need to ask, just use a getgrnam() ;-)


Index: Install.pm
===================================================================
RCS file: /cvsroot/koha/koha/misc/Install.pm,v
retrieving revision 1.85
retrieving revision 1.86
diff -C2 -r1.85 -r1.86
*** Install.pm	15 Dec 2004 13:27:48 -0000	1.85
--- Install.pm	15 Dec 2004 14:39:21 -0000	1.86
***************
*** 1645,1649 ****
  	#MJR: is this necessary?
  	if ($> == 0) {
! 		system("chown -R $httpduser:$httpduser $opacdir $intranetdir");
  	}
  	system("chmod -R a+rx $opacdir $intranetdir");
--- 1645,1650 ----
  	#MJR: is this necessary?
  	if ($> == 0) {
! 		my $httpdgrp = getgrnam($httpduser);
! 		system("chown -R $httpduser:$httpdgrp $opacdir $intranetdir");
  	}
  	system("chmod -R a+rx $opacdir $intranetdir");





More information about the Koha-cvs mailing list