From 63377136691e1dce0f369efbc6c8e960053e896a Mon Sep 17 00:00:00 2001 From: kemboi22 Date: Sat, 9 Mar 2024 02:00:06 +0300 Subject: [PATCH] Added To automatically configure the database --- glpi-start.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/glpi-start.sh b/glpi-start.sh index c487c74..cf268f9 100644 --- a/glpi-start.sh +++ b/glpi-start.sh @@ -69,6 +69,13 @@ fi echo "}"; \ } > /var/www/html/glpi/config/config_db.php +/usr/bin/php /var/www/html/glpi/bin/console glpi:database:install \ + --no-interaction \ + --db-host=${MARIADB_DB_HOST} \ + --db-port=${MARIADB_DB_PORT} \ + --db-name=${MARIADB_DB_NAME} \ + --db-user=${MARIADB_DB_USER} \ + --db-password=${MARIADB_DB_PASSWORD} #Add scheduled task by cron and enable echo "*/2 * * * * www-data /usr/bin/php /var/www/html/glpi/front/cron.php &>/dev/null" > /etc/cron.d/glpi #Start cron service