From e0ebd3cf053cb87b9c3688226c053e0ab408df10 Mon Sep 17 00:00:00 2001 From: Malamalca Date: Sat, 5 Oct 2024 16:08:15 +0200 Subject: [PATCH] Fixing Actions --- src/Console/Installer.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Console/Installer.php b/src/Console/Installer.php index ff1ed93..6495841 100644 --- a/src/Console/Installer.php +++ b/src/Console/Installer.php @@ -324,14 +324,14 @@ public static function setDatabase(string $dir, IOInterface $io): bool while (!$dbConnectSuccess && $numRetries < 10) { $dbHost = $io->ask('Enter database host ? [localhost]? ', 'localhost'); - $dbName = $io->ask('Enter database name ? [arhint]? ', 'arhint'); + $dbName = $io->ask('Enter database name ? [famiree_new]? ', 'famiree_new'); $dbUser = $io->ask('Enter db user ? '); $dbPassword = $io->ask('Enter db password ? '); $dbConnectSuccess = static::checkDbConnection($dbHost, $dbName, (string)$dbUser, (string)$dbPassword, $io); if ($dbConnectSuccess) { - static::setDbConfigInFile($dbHost, $dbName, $dbUser, $dbPassword, $dir, 'app_local.php', $io); + static::setDbConfigInFile($dbHost, $dbName, (string)$dbUser, (string)$dbPassword, $dir, 'app_local.php', $io); } else { $io->writeError('Cannot connect to mysql database. Please try again.'); } @@ -377,7 +377,7 @@ public static function createAdminUser(IOInterface $io, string $connection = 'in $conn = ConnectionManager::get($connection); if ($conn && $conn->getDriver()->connect()) { - $io->write('CREATE ADMIN USER'); + /*$io->write('CREATE ADMIN USER'); $adminName = $io->ask( 'Enter admin\'s display name ? [Administrator]? ', @@ -435,7 +435,7 @@ public static function createAdminUser(IOInterface $io, string $connection = 'in 'mat_no' => 'string', 'tax_no' => 'string', ] - ); + );*/ } else { $io->writeError('Cannot connect to mysql database to create admin user'); }