[Fusionforge-commits] r10455 - trunk/src

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


Author: aljeux
Date: 2010-09-12 12:52:16 +0200 (Sun, 12 Sep 2010)
New Revision: 10455

Modified:
   trunk/src/fusionforge-install-2.php
Log:
Fix creation of /scmrepos for source install

Modified: trunk/src/fusionforge-install-2.php
===================================================================
--- trunk/src/fusionforge-install-2.php	2010-09-12 10:52:10 UTC (rev 10454)
+++ trunk/src/fusionforge-install-2.php	2010-09-12 10:52:16 UTC (rev 10455)
@@ -113,6 +113,9 @@
 	system("mkdir -p uploads");
 	system("mkdir -p scmtarballs");
 	system("mkdir -p scmsnapshots");
+	system("mkdir -p scmrepos/svn");
+	system("mkdir -p scmrepos/cvs");
+
 	system("mkdir -p etc");
 	system("touch etc/httpd.vhosts");
 
@@ -124,18 +127,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("/var/lib/gforge/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("/var/lib/gforge/cvsroot", "/cvsroot");
+		symlink("$fusionforge_data_dir/scmrepos/cvs", "/cvsroot");
 	}
 
 	// Create default dumps dir




More information about the Fusionforge-commits mailing list