Update of /cvsroot/sandweb/sandweb/tools
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24920/tools
Modified Files:
instcachedir.pl
Log Message:
overwriting the group file if it already exists is just not nice!
Index: instcachedir.pl
===================================================================
RCS file: /cvsroot/sandweb/sandweb/tools/instcachedir.pl,v
retrieving revision 1.8
retrieving revision 1.9
diff -U2 -r1.8 -r1.9
--- instcachedir.pl 8 Mar 2004 08:01:56 -0000 1.8
+++ instcachedir.pl 8 Mar 2004 08:37:14 -0000 1.9
@@ -51,7 +51,9 @@
push @errors, "Failed to set $cachedir/users read/write for $httpuser user.";
}
- print("Copying SandWeb groups file '$cachedir/data/group'...\n");
- if (system('/bin/cp', 'var/data/group', "$cachedir/data/group")) {
- push @errors, "Failed to copy groups file to $cachedir/data/group.";
+ if (!-f "$cachedir/data/group"){
+ print("Copying SandWeb groups file '$cachedir/data/group'...\n");
+ if (system('/bin/cp', 'var/data/group', "$cachedir/data/group")) {
+ push @errors, "Failed to copy groups file to $cachedir/data/group.";
+ }
}
return($cachedir, $httpuser, \@errors);
|