Create horde/config/horde.local.php before linking horde, so that it's linked
authorJan Schneider <jan@horde.org>
Thu, 14 Jan 2010 23:13:47 +0000 (00:13 +0100)
committerJan Schneider <jan@horde.org>
Fri, 15 Jan 2010 00:14:59 +0000 (01:14 +0100)
on first run too.

framework/bin/install_dev

index bbefba2..a467a28 100755 (executable)
@@ -46,6 +46,7 @@ if (!empty($git)) {
 }
 
 print "\nLINKING horde\n";
+file_put_contents($horde_git . '/horde/config/horde.local.php', "<?php ini_set('include_path', '{$web_dir}/libs' . PATH_SEPARATOR . ini_get('include_path'));");
 $it = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($horde_git . '/horde'), RecursiveIteratorIterator::SELF_FIRST);
 while ($it->valid()) {
     if (!$it->isDot()) {
@@ -74,7 +75,6 @@ if (!empty($static_group)) {
 
 print "\nLINKING framework\n";
 mkdir($web_dir . '/libs');
-file_put_contents($horde_git . '/horde/config/horde.local.php', "<?php ini_set('include_path', '{$web_dir}/libs' . PATH_SEPARATOR . ini_get('include_path'));");
 system(dirname(__FILE__) . '/install_framework --src ' . $horde_git . '/framework --dest ' . $web_dir . '/libs');
 
 print "\nLINKING applications to web directory " . $web_dir . "\n";