From 1008a3db6edc04fd2761bdd39a6502f84eacadb0 Mon Sep 17 00:00:00 2001 From: hek2mgl Date: Wed, 13 Nov 2013 00:48:03 +0100 Subject: [PATCH] Update install.php "Pretty printing" `config.yml` in order to make it editable by humans. `5` is just value which is looking good for me. It produces a `config.yml` like this: prevstage: - start - database - github - email b8: database: servers: read: - localhost write: - localhost name: phpci username: ***** password: ***** phpci: url: 'http://phpci.my.org' github: id: '' secret: '' email_settings: smtp_address: '' smtp_port: '' smtp_encryption: on smtp_username: '' smtp_password: '' from_address: '' default_mailto_address: '' I guess the `prevstage` node can be replaced before writing? If yes I'll prepare that. --- public/install.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/install.php b/public/install.php index 0b7df4c8..d7ef1973 100644 --- a/public/install.php +++ b/public/install.php @@ -93,7 +93,7 @@ if ($installOK && strtoupper($_SERVER['REQUEST_METHOD']) == 'POST') { unset($config['tmp']); $dumper = new \Symfony\Component\Yaml\Dumper(); - $yaml = $dumper->dump($config); + $yaml = $dumper->dump($config, 5); file_put_contents(PHPCI_DIR . 'PHPCI/config.yml', $yaml);