First integration pass of the new "2.0" setup, but still work in progress...

SVN:trunk[2191]
This commit is contained in:
Denis Flaven
2012-09-19 12:36:44 +00:00
parent d18ff8339a
commit 54a3a1a89a
3 changed files with 22 additions and 15 deletions

View File

@@ -379,12 +379,19 @@ class ApplicationInstaller
{
throw new Exception("Failed to find the source directory '$sSourcePath', please check the rights of the web server");
}
if (!is_dir($sTargetPath) && !mkdir($sTargetPath))
if (!is_dir($sTargetPath))
{
throw new Exception("Failed to create directory '$sTargetPath', please check the rights of the web server");
}
// owner:rwx user/group:rx
chmod($sTargetPath, 0755);
if (!mkdir($sTargetPath))
{
throw new Exception("Failed to create directory '$sTargetPath', please check the rights of the web server");
}
else
{
// adjust the rights if and only if the directory was just created
// owner:rwx user/group:rx
chmod($sTargetPath, 0755);
}
}
$oFactory = new ModelFactory($sSourcePath);
$aModules = $oFactory->FindModules();