From 4cd478c5ad3964499a8e7b637caf1b50229cc825 Mon Sep 17 00:00:00 2001 From: tonnesen Date: Wed, 3 Jul 2002 04:45:11 +0000 Subject: [PATCH] Now asks for the apache username if it can't find the "User" directive in the config file. --- installer.pl | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/installer.pl b/installer.pl index 230ac3237f..904aaae804 100644 --- a/installer.pl +++ b/installer.pl @@ -308,7 +308,23 @@ foreach my $httpdconf (qw(/usr/local/apache/conf/httpd.conf close(HTTPDCONF); } } -$httpduser ||= 'Undetermined'; +unless ($httpduser) { + print qq| + +I was not able to determine the user that Apache is running as. This +information is necessary in order to set the access privileges correctly on +/etc/koha.conf. This user should be set in one of the Apache configuration +files using the "User" directive. +|; + print "What is your Apache user? "; + chomp($input = ); + + if ($input) { + $httpduser = $input; + } else { + $httpduser='Undetermined'; + } +} # # Set ownership of the koha.conf file for security -- 2.39.5