[Fusionforge-commits] r9745 - trunk/gforge

Alain Peyrat aljeux at libremir.placard.fr.eu.org
Thu May 13 21:38:44 CEST 2010


Author: aljeux
Date: 2010-05-13 21:38:43 +0200 (Thu, 13 May 2010)
New Revision: 9745

Modified:
   trunk/gforge/fusionforge-install-2.php
Log:
Fix tarball install

Modified: trunk/gforge/fusionforge-install-2.php
===================================================================
--- trunk/gforge/fusionforge-install-2.php	2010-05-12 11:53:28 UTC (rev 9744)
+++ trunk/gforge/fusionforge-install-2.php	2010-05-13 19:38:43 UTC (rev 9745)
@@ -243,6 +243,11 @@
 	$hash = md5(microtime());
 	system("perl -spi -e \"s/sys_session_key = 'foobar'/sys_session_key = '$hash'/\" /etc/gforge/local.inc");
 
+	# Replace /path/to/gforge to /opt/gforge
+	$config = file_get_contents('/etc/gforge/local.inc');
+	$content = str_replace('/path/to/gforge', '/opt/gforge', $config);
+	file_put_contents('/etc/gforge/local.inc', $content);
+
 	# Set jpgraph path.
 	if (is_dir("/usr/share/jpgraph")) {
 		system("perl -spi -e \"s!^(.sys_path_to_jpgraph)=.*!\\$1='/usr/share/jpgraph';!\" /etc/gforge/local.inc");




More information about the Fusionforge-commits mailing list