Diff for /loncom/Attic/lcuseradd between versions 1.38 and 1.40

version 1.38, 2005/07/29 17:33:18 version 1.40, 2006/12/05 14:46:04
Line 121  delete @ENV{qw(IFS CDPATH ENV BASH_ENV)} Line 121  delete @ENV{qw(IFS CDPATH ENV BASH_ENV)}
 # Do not print error messages.  # Do not print error messages.
 my $noprint=1;  my $noprint=1;
   
 #  Error file:  
   
 my $error_file; # This is either the error file name or undef.  
   
 print "In lcuseradd\n" unless $noprint;  print "In lcuseradd\n" unless $noprint;
   
 # ----------------------------- Make sure this process is running from user=www  # ----------------------------- Make sure this process is running from user=www
Line 352  system('/bin/chown','-R',"$safeusername: Line 348  system('/bin/chown','-R',"$safeusername:
 #  system('/bin/chown',"$safeusername:www","/home/$safeusername"); # Now adust top level...  #  system('/bin/chown',"$safeusername:www","/home/$safeusername"); # Now adust top level...
 #  system('/bin/chown','-R',"$safeusername:www","/home/$safeusername/public_html"); # And web dir.  #  system('/bin/chown','-R',"$safeusername:www","/home/$safeusername/public_html"); # And web dir.
 # ---------------------------------------------------- Gracefull Apache Restart  # ---------------------------------------------------- Gracefull Apache Restart
   my $pidfile;
 if (-e '/var/run/httpd.pid') {  if (-e '/var/run/httpd.pid') {
       $pidfile = '/var/run/httpd.pid';
   } elsif (-e '/var/run/httpd2.pid') {   #Apache 2 on SuSE 10.1 and SLES10 
       $pidfile = '/var/run/httpd2.pid';
   } 
   
   if ($pidfile) {
     print "lcuseradd Apache restart\n" unless $noprint;      print "lcuseradd Apache restart\n" unless $noprint;
     open(PID,'/var/run/httpd.pid');      open(PID,<$pidfile);
     my $pid=<PID>;      my $pid=<PID>;
     close(PID);      close(PID);
     my  $pid=~ /(\D+)/;      $pid=~ /(\D+)/;
     my $safepid = $1;      my $safepid = $1;
     if ($pid) {      if ($pid) {
  system('kill','-USR1',"$safepid");   system('kill','-USR1',"$safepid");

Removed from v.1.38  
changed lines
  Added in v.1.40


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