Skip to content

Commit

Permalink
Fixing Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
malamalca committed Oct 5, 2024
1 parent e668355 commit e0ebd3c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Console/Installer.php
Original file line number Diff line number Diff line change
Expand Up @@ -324,14 +324,14 @@ public static function setDatabase(string $dir, IOInterface $io): bool

while (!$dbConnectSuccess && $numRetries < 10) {
$dbHost = $io->ask('<info>Enter database host ?</info> [<comment>localhost</comment>]? ', 'localhost');
$dbName = $io->ask('<info>Enter database name ?</info> [<comment>arhint</comment>]? ', 'arhint');
$dbName = $io->ask('<info>Enter database name ?</info> [<comment>famiree_new</comment>]? ', 'famiree_new');
$dbUser = $io->ask('<info>Enter db user ?</info> ');
$dbPassword = $io->ask('<info>Enter db password ?</info> ');

$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);

Check warning on line 334 in src/Console/Installer.php

View workflow job for this annotation

GitHub Actions / Coding Standard & Static Analysis

Line exceeds 120 characters; contains 126 characters
} else {
$io->writeError('Cannot connect to mysql database. Please try again.');
}
Expand Down Expand Up @@ -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(
'<info>Enter admin\'s display name ?</info> [<comment>Administrator</comment>]? ',
Expand Down Expand Up @@ -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');
}
Expand Down

0 comments on commit e0ebd3c

Please sign in to comment.