[Fusionforge-commits] r10450 - branches/Branch_5_0/gforge

Alain Peyrat aljeux at libremir.placard.fr.eu.org
Sun Sep 12 12:35:35 CEST 2010


Author: aljeux
Date: 2010-09-12 12:35:34 +0200 (Sun, 12 Sep 2010)
New Revision: 10450

Modified:
   branches/Branch_5_0/gforge/fusionforge-install-2.php
Log:
Fix creation of /scmrepos for source install

Modified: branches/Branch_5_0/gforge/fusionforge-install-2.php
===================================================================
--- branches/Branch_5_0/gforge/fusionforge-install-2.php	2010-09-12 10:35:27 UTC (rev 10449)
+++ branches/Branch_5_0/gforge/fusionforge-install-2.php	2010-09-12 10:35:34 UTC (rev 10450)
@@ -107,6 +107,8 @@
 	system("mkdir -p uploads");
 	system("mkdir -p scmtarballs");
 	system("mkdir -p scmsnapshots");
+	system("mkdir -p scmrepos/svn");
+	system("mkdir -p scmrepos/cvs");
 
 	//#project vhost space
 	system("mkdir -p homedirs");
@@ -116,18 +118,21 @@
 		symlink("/home/groups", "homedirs/groups");
 	}
 
-	// Create default location for SVN repositories
-	system("mkdir -p svnroot");
+	if (!is_dir("/scmrepos"))
+	{
+		symlink("$fusionforge_data_dir/scmrepos", "/scmrepos");
+	}
+
+	// Create the old symlink /svnroot for compatibility.
 	if (!is_dir("/svnroot"))
 	{
-		symlink("$fusionforge_data_dir/svnroot", "/svnroot");
+		symlink("$fusionforge_data_dir/scmrepos/svn", "/svnroot");
 	}
 
-	// Create default location for CVS repositories
-	system("mkdir -p cvsroot");
+	// Create the old symlink /cvsroot for compatibility.
 	if (!is_dir("/cvsroot"))
 	{
-		symlink("$fusionforge_data_dir/cvsroot", "/cvsroot");
+		symlink("$fusionforge_data_dir/scmrepos/cvs", "/cvsroot");
 	}
 
 	// Create default dumps dir




More information about the Fusionforge-commits mailing list