mirror of
https://github.com/LBRYFoundation/pool.git
synced 2025-08-23 17:37:25 +00:00
more checks for new installs
This commit is contained in:
parent
307fba924d
commit
0feed8bd1d
3 changed files with 23 additions and 5 deletions
8
bin/yiic
Executable file
8
bin/yiic
Executable file
|
@ -0,0 +1,8 @@
|
|||
#!/bin/bash
|
||||
|
||||
ROOTDIR=/data/yiimp
|
||||
DIR=`pwd`
|
||||
|
||||
cd "$ROOTDIR/web" && php yaamp/yiic.php $*
|
||||
|
||||
cd $DIR
|
|
@ -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");
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
4
web/yiic
4
web/yiic
|
@ -1,4 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
php yaamp/yiic.php $*
|
||||
|
Loading…
Add table
Reference in a new issue