[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Koha-cvs] CVS: koha installer.pl,1.2.2.9,1.2.2.10
From: |
Mike Mylonas |
Subject: |
[Koha-cvs] CVS: koha installer.pl,1.2.2.9,1.2.2.10 |
Date: |
Sun, 26 May 2002 03:21:12 -0700 |
Update of /cvsroot/koha/koha
In directory usw-pr-cvs1:/tmp/cvs-serv3857/koha
Modified Files:
Tag: rel-1-2
installer.pl
Log Message:
installer now changes ownership of the koha.conf file for better security
Index: installer.pl
===================================================================
RCS file: /cvsroot/koha/koha/installer.pl,v
retrieving revision 1.2.2.9
retrieving revision 1.2.2.10
diff -C2 -r1.2.2.9 -r1.2.2.10
*** installer.pl 17 May 2002 07:59:59 -0000 1.2.2.9
--- installer.pl 26 May 2002 10:21:09 -0000 1.2.2.10
***************
*** 57,63 ****
my @missing = ();
unless (eval require DBI) { push @missing,"DBI" };
! unless (eval require Date::Manip) { push @missing,"Datr::Manip" }
! unless (eval require DBD::mysql) { push @missing,"DBD::mysql" }
! unless (eval require Set::Scalar) { push @missing,"Set::Scalar" }
#
--- 57,63 ----
my @missing = ();
unless (eval require DBI) { push @missing,"DBI" };
! unless (eval require Date::Manip) { push @missing,"Datr::Manip" };
! unless (eval require DBD::mysql) { push @missing,"DBD::mysql" };
! unless (eval require Set::Scalar) { push @missing,"Set::Scalar" };
#
***************
*** 220,229 ****
print "Successfully created the Koha configuration file.\n";
print "\n";
print "\n";
-
#
#SETUP opac
--- 220,247 ----
print "Successfully created the Koha configuration file.\n";
+ print "\n";
+ print "\n";
+ my $apache_owner;
+ print qq|
+ The permissions on the koha.conf file should also be strict,
+ since they contain the database password.
+ Please supply the username that your apache webserver runs under.
+ |;
+ do {
+ print "Enter apache user:";
+ chomp($apache_owner = <STDIN>);
+ };
+ #
+ # Set ownership of the koha.conf file for security
+ # FIXME - this will only work if run as work.
+ #
+
+ chown((getpwnam($apache_owner)) [2,3], "$conf_path/koha.conf") or die "can't
chown koha.conf: $!";
+
print "\n";
print "\n";
#
#SETUP opac
***************
*** 244,248 ****
print "Enter path:";
chomp($apache_conf_path = <STDIN>);
! print "$conf_path is a valid file.\n" if !-f $apache_conf_path;
} until -f $apache_conf_path;
--- 262,266 ----
print "Enter path:";
chomp($apache_conf_path = <STDIN>);
! print "$conf_path is not a valid file.\n" if !-f $apache_conf_path;
} until -f $apache_conf_path;
***************
*** 313,314 ****
--- 331,336 ----
print "\nCongratulations ... your Koha installation is complete!\n";
print "\nYou will need to restart your webserver before using Koha!\n";
+
+ #
+ #Sub for chown of conf and cgi-bin dir
+ #
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Koha-cvs] CVS: koha installer.pl,1.2.2.9,1.2.2.10,
Mike Mylonas <=
- Prev by Date:
[Koha-cvs] CVS: koha/acqui acquire.pl,1.2,1.2.2.1 newbasket2.pl,1.1.1.1,1.1.1.1.2.1 newbiblio.pl,1.2,1.2.2.1 receive.pl,1.1.1.1,1.1.1.1.2.1
- Next by Date:
[Koha-cvs] CVS: koha installer.pl,1.2.2.10,1.2.2.11
- Previous by thread:
[Koha-cvs] CVS: koha/acqui acquire.pl,1.2,1.2.2.1 newbasket2.pl,1.1.1.1,1.1.1.1.2.1 newbiblio.pl,1.2,1.2.2.1 receive.pl,1.1.1.1,1.1.1.1.2.1
- Next by thread:
[Koha-cvs] CVS: koha installer.pl,1.2.2.10,1.2.2.11
- Index(es):