mirror of
https://github.com/aljazceru/ditto.git
synced 2026-02-18 11:44:20 +01:00
Change setup.ts to use password input instead of plaintext
This commit is contained in:
@@ -54,7 +54,7 @@ if (DATABASE_URL) {
|
||||
const host = await question('input', 'Postgres host', 'localhost');
|
||||
const port = await question('input', 'Postgres port', '5432');
|
||||
const user = await question('input', 'Postgres user', 'ditto');
|
||||
const password = await question('input', 'Postgres password', 'ditto');
|
||||
const password = await question('password', 'Postgres password', true);
|
||||
const database = await question('input', 'Postgres database', 'ditto');
|
||||
vars.DATABASE_URL = `postgres://${user}:${password}@${host}:${port}/${database}`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user