aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Bachelier <laurent@bachelier.name>2011-02-02 01:36:06 +0100
committerLaurent Bachelier <laurent@bachelier.name>2011-02-02 01:36:06 +0100
commit126fcad5f1a6058ef0ebeb4f4f9a20267233b4e2 (patch)
treec75ecd9425dcbe5d0027ad06593bf9d549399dd4
parentColorize the full log line, more/better colors (diff)
downloadsymfttpd-126fcad5f1a6058ef0ebeb4f4f9a20267233b4e2.tar.xz
Rationalize the way to find the PHP CLI executable
-rwxr-xr-xmksymlinks6
1 files changed, 5 insertions, 1 deletions
diff --git a/mksymlinks b/mksymlinks
index 3a7701b..9c0a0e4 100755
--- a/mksymlinks
+++ b/mksymlinks
@@ -103,7 +103,11 @@ if ($options['do_plugins'])
if (version_compare($options['want'], '1.2') >= 0)
{
log_message('Creating symbolic links for plugins... (calling symfony)');
- system('/usr/bin/env php symfony plugin:publish-assets');
+ if (empty($options['php_cmd']))
+ {
+ $options['php_cmd'] = PosixTools::which('php');
+ }
+ system(trim($options['php_cmd'].' symfony plugin:publish-assets'));
}
else
{