Use "/usr/bin/env php" for the setup scripts.
authorJan Schneider <jan@horde.org>
Thu, 14 Jan 2010 23:48:33 +0000 (00:48 +0100)
committerJan Schneider <jan@horde.org>
Fri, 15 Jan 2010 00:15:00 +0000 (01:15 +0100)
horde/admin/setup/scripts.php

index f7f378d..b268fbc 100644 (file)
@@ -42,7 +42,7 @@ $data = '';
 if ($setup == 'conf' && $type == 'php') {
     /* A bit ugly here, save PHP code into a string for creating the script
      * to be run at the command prompt. */
-    $data = '#!/usr/bin/php' . "\n";
+    $data = '#!/usr/bin/env php' . "\n";
     $data .= '<?php' . "\n";
     foreach ($_SESSION['_config'] as $app => $php) {
         $path = $registry->get('fileroot', $app) . '/config';