From 743cc2e13a8c5ef3440d5f0f1276fbd29fb3626e Mon Sep 17 00:00:00 2001 From: earnolmartin Date: Sat, 7 Oct 2023 12:31:41 -0600 Subject: [PATCH] Run Check Tables on Start --- ehcp/classapp.php | 3 +++ ehcp/index.php | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ehcp/classapp.php b/ehcp/classapp.php index aa56999..f3ad178 100755 --- a/ehcp/classapp.php +++ b/ehcp/classapp.php @@ -12468,6 +12468,9 @@ email2@domain2.com:password2
@mkdir($this->ehcpdir . '/upload'); $this->executeProg3("chmod a+w " . $this->ehcpdir . '/upload'); $this->executeProg3("chmod a+w " . $this->ehcpdir . '/LocalServer.cnf'); + + // Check tables on daemon init + $this->checkTables(); while (True) { // run forever // Set up the array to prevent duplicate operations from running diff --git a/ehcp/index.php b/ehcp/index.php index 1d085d7..fabe070 100755 --- a/ehcp/index.php +++ b/ehcp/index.php @@ -38,9 +38,6 @@ $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(); ?>