Diff for /loncom/build/loncaparestoreconfigurations between versions 1.1 and 1.3

version 1.1, 2000/10/26 00:09:58 version 1.3, 2000/10/26 00:28:43
Line 21  my @generic_conf_files=( Line 21  my @generic_conf_files=(
  );   );
   
 foreach (@special_conf_files) {  foreach (@special_conf_files) {
     if (/^/etc/httpd/conf/access.conf$/) {      if (/^\/etc\/httpd\/conf\/access.conf$/) {
    my $template=`/bin/cat /etc/httpd/conf/access.conf`;
    my $rpmsave=`/bin/cat /etc/httpd/conf/access.conf.rpmsave`;
    `/bin/mv /etc/httpd/conf/access.conf /etc/httpd/conf/access.conf.template`;
  my @perlsetvars=("lonHostID","lonRole","lonAdmEMail","lonDefDomain","lonLoadLim","lonExpire");   my @perlsetvars=("lonHostID","lonRole","lonAdmEMail","lonDefDomain","lonLoadLim","lonExpire");
    foreach my $psv (@perlsetvars) {
       $rpmsave=~/\nPerlSetVar\s+$psv\s+(\S+)/;
       my $pval=$1;
       $template=~s/(\nPerlSetVar\s+$psv\s+)\S+/$1$pval/;
    }
    open OUT,">/etc/httpd/conf/access.conf";
    print OUT $template;
    close OUT;
     }      }
 }  }
   
 foreach (@generic_conf_files) {  foreach (@generic_conf_files) {
     `/bin/mv $_ $_.template`;      if (-e "$_.rpmsave") {
     `/bin/mv $_.rpmsave $_`;   `/bin/mv $_ $_.template`;
    `/bin/mv $_.rpmsave $_`;
       }
 }  }

Removed from v.1.1  
changed lines
  Added in v.1.3


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>