[LON-CAPA-cvs] cvs: loncom / lchtmldir lcuseradd

foxr lon-capa-cvs@mail.lon-capa.org
Fri, 03 May 2002 03:43:54 -0000


foxr		Thu May  2 23:43:54 2002 EDT

  Modified files:              
    /loncom	lchtmldir lcuseradd 
  Log:
  Forgot to propagate change for -p switch into mkdir.
  
  
  
Index: loncom/lchtmldir
diff -u loncom/lchtmldir:1.2 loncom/lchtmldir:1.3
--- loncom/lchtmldir:1.2	Thu May  2 23:21:25 2002
+++ loncom/lchtmldir	Thu May  2 23:43:54 2002
@@ -179,7 +179,7 @@
 }
 &EnableRoot;
 
-&System("/bin/mkdir $fulldir")   unless (-e $fulldir);
+&System("/bin/mkdir -p $fulldir")   unless (-e $fulldir);
     unless(-e $fulldir."/index.html") {
 	open OUT,">".$fulldir."/index.html";
 	print OUT<<END;
Index: loncom/lcuseradd
diff -u loncom/lcuseradd:1.20 loncom/lcuseradd:1.21
--- loncom/lcuseradd:1.20	Sat Apr 27 09:10:47 2002
+++ loncom/lcuseradd	Thu May  2 23:43:54 2002
@@ -18,7 +18,7 @@
 #        o LonCapa will add it if/when the user is granted an Author
 #          role.
 #
-# $Id: lcuseradd,v 1.20 2002/04/27 13:10:47 foxr Exp $
+# $Id: lcuseradd,v 1.21 2002/05/03 03:43:54 foxr Exp $
 ###
 
 ###############################################################################
@@ -244,33 +244,33 @@
 # ------------------------------ Make final modifications to the user directory
 # -- Add a public_html file with a stand-in index.html file
 
-# system('/bin/chmod','-R','0660',"/home/$safeusername");
-#system('/bin/chmod','0710',"/home/$safeusername");
-#mkdir "/home/$safeusername/public_html",0755;
-#system('/bin/chmod','02770',"/home/$safeusername/public_html");
-#open OUT,">/home/$safeusername/public_html/index.html";
-#print OUT<<END;
-#<html>
-#<head>
-#<title>$safeusername</title>
-#</head>
-#<body>
-#<h1>$safeusername</h1>
-#<p>
-#Learning Online Network
-#</p>
-#<p>
-#This area provides for:
-#</p>
-#<ul>
-#<li>resource construction</li>
-#<li>resource publication</li>
-#<li>record-keeping</li>
-#</ul>
-#</body>
-#</html>
-#END
-#close OUT;
+ system('/bin/chmod','-R','0660',"/home/$safeusername");
+system('/bin/chmod','0710',"/home/$safeusername");
+mkdir "/home/$safeusername/public_html",0755;
+system('/bin/chmod','02770',"/home/$safeusername/public_html");
+open OUT,">/home/$safeusername/public_html/index.html";
+print OUT<<END;
+<html>
+<head>
+<title>$safeusername</title>
+</head>
+<body>
+<h1>$safeusername</h1>
+<p>
+Learning Online Network
+</p>
+<p>
+This area provides for:
+</p>
+<ul>
+<li>resource construction</li>
+<li>resource publication</li>
+<li>record-keeping</li>
+</ul>
+</body>
+</html>
+END
+close OUT;
 
 system('/bin/chown','-R',"$safeusername:$safeusername","/home/$safeusername");