more checks for new installs

This commit is contained in:
Tanguy Pruvot 2015-07-11 16:46:43 +02:00
parent 307fba924d
commit 0feed8bd1d
3 changed files with 23 additions and 5 deletions

8
bin/yiic Executable file
View file

@ -0,0 +1,8 @@
#!/bin/bash
ROOTDIR=/data/yiimp
DIR=`pwd`
cd "$ROOTDIR/web" && php yaamp/yiic.php $*
cd $DIR

View file

@ -38,6 +38,7 @@ class CheckupCommand extends CConsoleCommand
} else {
self::checkDirectories();
self::checkPHP();
//self::checkStoredProcedures();
self::checkModels();
@ -68,7 +69,7 @@ class CheckupCommand extends CConsoleCommand
}
/**
* Vérifie les répertoires nécessitant le droit d'écriture
* Check we can write in specific folders
*/
public function checkDirectories()
{
@ -76,6 +77,19 @@ class CheckupCommand extends CConsoleCommand
//self::isDirWritable("$root/protected/data/.");
self::isDirWritable("$root/yaamp/runtime/.");
self::isDirWritable(YAAMP_LOGS."/.");
}
/**
* Check all required php modules are present
*/
public function checkPHP()
{
if (!function_exists('curl_init'))
echo("missing curl php extension!\n");
if (!function_exists('memcache_get'))
echo("missing memcache php extension!\n");
}
/**

View file

@ -1,4 +0,0 @@
#!/bin/bash
php yaamp/yiic.php $*