From cd7c23b7ff559c0be4ed36721f97634514e60604 Mon Sep 17 00:00:00 2001 From: tonnesen Date: Wed, 3 Jul 2002 17:07:09 +0000 Subject: [PATCH] store httpduser variable in /etc/koha.conf --- installer.pl | 1 + koha.upgrade | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/installer.pl b/installer.pl index 904aaae804..f5fb293c02 100644 --- a/installer.pl +++ b/installer.pl @@ -279,6 +279,7 @@ includes=$kohadir/htdocs/includes intranetdir=$kohadir opacdir=$opacdir kohaversion=$kohaversion +httpduser=$httpduser EOP ; close(SITES); diff --git a/koha.upgrade b/koha.upgrade index 44649dbda1..e948a0b673 100644 --- a/koha.upgrade +++ b/koha.upgrade @@ -324,6 +324,9 @@ while () { if (/^\s*includes\s*=/) { $kccontents.="includes=$intranetdir/htdocs/includes\n"; $kc->{'includes'}=1; + } elsif (/^\s*httpduser\s*=/) { + $kccontents.="httpduser=$httpduser\n"; + $kc->{'httpduser'}=1; } elsif (/^\s*kohaversion\s*=/) { $kccontents.="kohaversion=$newversion\n"; $kc->{'kohaversion'}=1; @@ -344,6 +347,9 @@ unless (defined($kc->{'kohaversion'})) { unless (defined($kc->{'includes'})) { $kccontents.="includes=$intranetdir/htdocs/includes\n"; } +unless (defined($kc->{'httpduser'})) { + $kccontents.="httpduser=$httpduser\n"; +} unless (defined($kc->{'intranetdir'})) { $kccontents.="intranetdir=$intranetdir\n"; }