From 2f2567645ad8b559c56413b3d94f99227978d8ee Mon Sep 17 00:00:00 2001 From: earnolmartin Date: Sat, 7 Oct 2023 12:25:35 -0600 Subject: [PATCH] Run Check Tables on Start --- ehcp/index.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ehcp/index.php b/ehcp/index.php index d2bc8ea..1d085d7 100755 --- a/ehcp/index.php +++ b/ehcp/index.php @@ -28,7 +28,6 @@ if($argv and $argc and (is_array($argv))and (!$user)) { $op=$argv[1]; print_r($argv); echo "Commandline active, argc: $argc \n op:$op:\n argv:".print_r($argv); - } else { session_start(); } @@ -39,8 +38,9 @@ $app->cerceve="standartcerceve"; $app->usertable="domainusers"; $app->userfields=array("id","domainname","username","email","quota"); $app->op=strtolower($op); +if($commandline) { + $app->checkTables(); // Check tables on daemon start +} $app->run(); - - ?>