Conditions | 1 |
Total Lines | 18 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | #!/usr/bin/env python3 |
||
12 | def check_configuration(client): |
||
13 | """ |
||
14 | Checking remote TYPO3 database configuration |
||
15 | :param client: String |
||
16 | :return: |
||
17 | """ |
||
18 | _path = system.config[client]['path'] |
||
19 | |||
20 | stdout = mode.run_command( |
||
21 | helper.get_command(client, 'php') + ' -r "echo json_encode(include \'' + system.config[client][ |
||
22 | 'path'] + '\');"', |
||
23 | client, |
||
24 | True |
||
25 | ) |
||
26 | |||
27 | _db_config = parse_database_credentials(json.loads(stdout)['DB']) |
||
28 | |||
29 | system.config[client]['db'] = _db_config |
||
30 | |||
53 |