store httpduser variable in /etc/koha.conf

This commit is contained in:
tonnesen 2002-07-03 17:07:09 +00:00
parent f38f71eab9
commit cd7c23b7ff
2 changed files with 7 additions and 0 deletions

View File

@ -279,6 +279,7 @@ includes=$kohadir/htdocs/includes
intranetdir=$kohadir
opacdir=$opacdir
kohaversion=$kohaversion
httpduser=$httpduser
EOP
;
close(SITES);

View File

@ -324,6 +324,9 @@ while (<KC>) {
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";
}