Skip to content
This repository has been archived by the owner on Aug 9, 2021. It is now read-only.

Commit

Permalink
feat(install): change the index assign in set variables
Browse files Browse the repository at this point in the history
Signed-off-by: Luis F. Gonzalez <lgonzalez@teclib.com>
  • Loading branch information
ingluife committed Jul 16, 2018
1 parent bc6c54e commit 8bf4a41
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions tools/cli_install.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,24 +98,16 @@
// Setup plugin configuration
$pluginConfig = [];
if (isset($args['--mqtt-address']) && $args['--mqtt-address'] !== false) {
$pluginConfig = [
'mqtt_broker_address' => $args['--mqtt-address']
];
$pluginConfig['mqtt_broker_address'] = $args['--mqtt-address'];
}
if (isset($args['--mqtt-internal-address']) && $args['--mqtt-internal-address'] !== false) {
$pluginConfig = [
'mqtt_broker_internal_address' => $args['--mqtt-internal-address']
];
$pluginConfig['mqtt_broker_internal_address'] = $args['--mqtt-internal-address'];
}
if (isset($args['--mqtt-port']) && $args['--mqtt-port'] !== false) {
$pluginConfig = [
'mqtt_broker_port' => $args['--mqtt-port']
];
$pluginConfig['mqtt_broker_port'] = $args['--mqtt-port'];
}
if (isset($args['--mqtt-port-tls']) && $args['--mqtt-port-tls'] !== false) {
$pluginConfig = [
'mqtt_broker_tls_port' => $args['--mqtt-port-tls']
];
$pluginConfig['mqtt_broker_tls_port'] = $args['--mqtt-port-tls'];
}

// Init debug variable
Expand Down

0 comments on commit 8bf4a41

Please sign in to comment.