Various fixes for installer
-create zendphp.log before web files are available -run airtime.php script earlier so DB is created before web files are available -zendphp.log should have 644 permissions, not 755
This commit is contained in:
parent
5aea66a5c4
commit
bb5deda09d
5 changed files with 31 additions and 25 deletions
|
@ -261,7 +261,7 @@ class AirtimeInstall
|
|||
// Put Propel sql files in Database
|
||||
//$command = AirtimeInstall::CONF_DIR_WWW."/library/propel/generator/bin/propel-gen ".AirtimeInstall::CONF_DIR_WWW."/build/ insert-sql 2>/dev/null";
|
||||
|
||||
$dir = AirtimeInstall::CONF_DIR_WWW."/build/sql/";
|
||||
$dir = self::GetAirtimeSrcDir()."/build/sql/";
|
||||
$files = array("schema.sql", "sequences.sql", "views.sql", "triggers.sql", "defaultdata.sql");
|
||||
|
||||
foreach ($files as $f){
|
||||
|
@ -453,7 +453,7 @@ class AirtimeInstall
|
|||
}
|
||||
|
||||
touch($file);
|
||||
chmod($file, 0755);
|
||||
chmod($file, 0644);
|
||||
chown($file, $CC_CONFIG['webServerUser']);
|
||||
chgrp($file, $CC_CONFIG['webServerUser']);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue