pr comments addressed

* reverted install php
* deleted databasebase from tablesdb
This commit is contained in:
ArnabChatterjee20k
2026-03-10 15:39:10 +05:30
parent cef4d899e3
commit b5b2338c82
2 changed files with 9 additions and 9949 deletions
+9 -18
View File
@@ -267,6 +267,15 @@ class Install extends Action
$input['_APP_DB_PORT'] = 3306;
}
$database = $input['_APP_DB_ADAPTER'];
if ($database === 'mongodb') {
$input['_APP_DB_HOST'] = 'mongodb';
$input['_APP_DB_PORT'] = 27017;
} elseif ($database === 'mariadb') {
$input['_APP_DB_HOST'] = 'mariadb';
$input['_APP_DB_PORT'] = 3306;
}
$templateForCompose = new View(__DIR__ . '/../../../../app/views/install/compose.phtml');
$templateForEnv = new View(__DIR__ . '/../../../../app/views/install/env.phtml');
$templateForCompose
@@ -292,24 +301,6 @@ class Install extends Action
Console::exit(1);
}
// Copy MongoDB initialization files for replica set setup
if ($database === 'mongodb') {
$mongoInitScript = __DIR__ . '/../../../../mongo-init.js';
$mongoEntrypoint = __DIR__ . '/../../../../mongo-entrypoint.sh';
if (file_exists($mongoInitScript)) {
if (!copy($mongoInitScript, $this->path . '/mongo-init.js')) {
Console::warning('Failed to copy mongo-init.js');
}
}
if (file_exists($mongoEntrypoint)) {
if (!copy($mongoEntrypoint, $this->path . '/mongo-entrypoint.sh')) {
Console::warning('Failed to copy mongo-entrypoint.sh');
}
}
}
$env = '';
$stdout = '';
$stderr = '';
File diff suppressed because it is too large Load Diff