Browse Source

bug fix.

tags/2.0.0-beta
Qiang Xue 12 years ago
parent
commit
9ea5ccc4dc
  1. 20
      apps/bootstrap/composer.json
  2. 4
      extensions/composer/yii/composer/InstallHandler.php

20
apps/bootstrap/composer.json

@ -15,6 +15,24 @@
"minimum-stability": "dev", "minimum-stability": "dev",
"require": { "require": {
"php": ">=5.3.0", "php": ">=5.3.0",
"yiisoft/yii2": "dev-master" "yiisoft/yii2": "dev-master",
"yiisoft/yii2-composer": "dev-master"
},
"scripts": {
"post-install-cmd": [
"yii\\composer\\InstallHandler::setPermissions"
],
"post-update-cmd": [
"yii\\composer\\InstallHandler::setPermissions"
]
},
"extra": {
"writable": [
"runtime",
"www/assets"
],
"executable": [
"yii"
]
} }
} }

4
extensions/composer/yii/composer/InstallHandler.php

@ -41,11 +41,11 @@ class InstallHandler
foreach ((array)$options['executable'] as $path) { foreach ((array)$options['executable'] as $path) {
echo "Setting executable: $path ..."; echo "Setting executable: $path ...";
if (is_dir($path)) { if (is_file($path)) {
chmod($path, 0755); chmod($path, 0755);
echo "done\n"; echo "done\n";
} else { } else {
echo "The file was not found: " . getcwd() . DIRECTORY_SEPARATOR . $path; echo "\n\tThe file was not found: " . getcwd() . DIRECTORY_SEPARATOR . $path . "\n";
return; return;
} }
} }

Loading…
Cancel
Save