asdsad
This commit is contained in:
@@ -5,7 +5,14 @@ set_time_limit(0);
|
||||
|
||||
$root = dirname(__DIR__, 2);
|
||||
chdir($root);
|
||||
require $root . '/config/fileload.php';
|
||||
$fileload = $root . '/config/fileload.php';
|
||||
if (!file_exists($fileload)) {
|
||||
fwrite(STDERR, "[worker] Missing config: {$fileload}\n");
|
||||
while (true) {
|
||||
sleep(30);
|
||||
}
|
||||
}
|
||||
require $fileload;
|
||||
|
||||
$module = 'pi_control';
|
||||
$pdo = module_fn($module, 'pdo');
|
||||
|
||||
Reference in New Issue
Block a user