upgrade: now it can handle cron jobs and env variables

This commit is contained in:
root 2026-03-26 13:46:21 +00:00
parent 8414d479ad
commit b8c847e2e7
2 changed files with 5 additions and 4 deletions

View File

@ -4,15 +4,15 @@
// 1. MariaDB Connection Credentials
//
define("DB_HOST", "localhost");
define("DB_HOST", getenv("DB_HOST") !== false ? getenv("DB_HOST") : "localhost");
// The MariaDB User
//
// Create with: (1) CREATE USER 'username'@'localhost' IDENTIFIED BY 'your_password';
// (2) GRANT ALL PRIVILEGES ON database_name.* TO 'username'@'localhost';
// (3) FLUSH PRIVILEGES;
define("DB_USER", "SQL_DB_USER");
define("DB_PASS", "SQL_DB_PASS");
define("DB_NAME", "SQL_DB_NAME");
define("DB_USER", getenv("DB_USER") !== false ? getenv("DB_USER") : "SQL_DB_USER");
define("DB_PASS", getenv("DB_PASS") !== false ? getenv("DB_PASS") : "SQL_DB_PASS");
define("DB_NAME", getenv("DB_NAME") !== false ? getenv("DB_NAME") : "SQL_DB_NAME");

View File

@ -18,6 +18,7 @@
function main() {
processAllTheActiveTables();
processCronJobs();
sleep(1);
}