--- doc/loncapafiles/webserver.piml 2002/02/02 12:57:10 1.2 +++ doc/loncapafiles/webserver.piml 2002/05/13 09:07:05 1.10 @@ -1,7 +1,9 @@ + - + -/abc/ +/ @@ -54,10 +56,51 @@ unless (-e "") { 'software package'; } else { + $flag=0; + open IN, "<"; + while (<IN>) { if (/^\s*Include\s+conf\/srm.conf/) { $flag=1; } } + close IN; + unless ($flag==1) { open OUT,">>"; - print OUT 'Include srm.conf'."\n"; - print OUT 'Include access.conf'."\n"; + print OUT 'Include conf/srm.conf'."\n"; close OUT; + } + $flag=0; + open IN, "<"; + while (<IN>) { if (/^\s*Include\s+conf\/access.conf/) { $flag=1; } } + close IN; + unless ($flag==1) { + open OUT,">>"; + print OUT 'Include conf/access.conf'."\n"; + close OUT; + } + my $eflag=0; + $flag=0; + open IN, "<"; + while (<IN>) { + if (/^\s*Include\s+conf\/loncapa_apache.conf/) { + $flag=1; + } + } + close IN; + unless ($flag==1) { + open OUT,">>"; + print OUT 'Include conf/loncapa_apache.conf'."\n"; + close OUT; + } + $flag=0; + open IN, "<"; + while (<IN>) { + if (/^\s*Include\s+conf\/loncapa.conf/) { + $flag=1; + } + } + close IN; + unless ($flag==1) { + open OUT,">>"; + print OUT 'Include conf/loncapa.conf'."\n"; + close OUT; + } } @@ -70,7 +113,7 @@ Apache unless (-e "") { - print <<; + print <<END; WARNING! access.conf is not currently present on your system. This is either due to * you are missing the Apache software package, @@ -82,9 +125,25 @@ For backwards compatibility, is being generated. END } +my $flag=0; +open IN, "<"; +while (<IN>) { if (/^\s*Include\s+conf\/loncapa_apache.conf/) + { $flag=1; } } +close IN; +unless ($flag==1) { +open OUT,">>"; +print OUT 'Include conf/loncapa_apache.conf'."\n"; +close OUT; +} +$flag=0; +open IN, "<"; +while (<IN>) { if (/^\s*Include\s+conf\/loncapa.conf/) { $flag=1; } } +close IN; +unless ($flag==1) { open OUT,">>"; -print OUT 'Include loncapa.conf'."\n"; +print OUT 'Include conf/loncapa.conf'."\n"; close OUT; +} @@ -96,7 +155,7 @@ Apache unless (-e "") { - print <<; + print <<END; WARNING! srm.conf is not currently present on your system. This is either due to * you are missing the Apache software package, @@ -108,9 +167,25 @@ For backwards compatibility, is being generated. END } +my $flag=0; +open IN, "<"; +while (<IN>) { if (/^\s*Include\s+conf\/loncapa_apache.conf/) + { $flag=1; } } +close IN; +unless ($flag==1) { open OUT,">>"; -print OUT 'Include loncapa.conf'."\n"; +print OUT 'Include conf/loncapa_apache.conf'."\n"; close OUT; +} +$flag=0; +open IN, "<"; +while (<IN>) { if (/^\s*Include\s+conf\/loncapa.conf/) { $flag=1; } } +close IN; +unless ($flag==1) { +open OUT,">>"; +print OUT 'Include conf/loncapa.conf'."\n"; +close OUT; +}