diff --git a/src/Core/Console/Config.php b/src/Core/Console/Config.php index 3b77d54009..a199fb3afb 100644 --- a/src/Core/Console/Config.php +++ b/src/Core/Console/Config.php @@ -64,7 +64,11 @@ Description Shows the value of the provided key in the category bin/console config - Set the value of the provided key in the category + Sets the value of the provided key in the category + +Notes: + Setting config entries which are manually set in .htconfig.php may result in + conflict between database settings and the manual startup settings. Options -h|--help|-? Show help information diff --git a/util/config b/util/config deleted file mode 100755 index 7774fb6023..0000000000 --- a/util/config +++ /dev/null @@ -1,65 +0,0 @@ -#!/usr/bin/env php - 3) { - Config::set($argv[1],$argv[2],$argv[3]); - echo "config[{$argv[1]}][{$argv[2]}] = " . Config::get($argv[1],$argv[2]) . "\n"; -} - -if($argc == 3) { - echo "config[{$argv[1]}][{$argv[2]}] = " . Config::get($argv[1],$argv[2]) . "\n"; -} - -if($argc == 2) { - Config::load($argv[1]); - if (!is_null($a->config[$argv[1]])) { - foreach($a->config[$argv[1]] as $k => $x) { - echo "config[{$argv[1]}][{$k}] = " . $x . "\n"; - } - } else { - echo "config section '$argv[1]' returned nothing.\n"; - } -} - -if($argc == 1) { - $r = q("select * from config where 1"); - if($r) { - foreach($r as $rr) { - echo "config[{$rr['cat']}][{$rr['k']}] = " . $rr['v'] . "\n"; - } - } -} - diff --git a/util/config.md b/util/config.md deleted file mode 100644 index 3b834fe01a..0000000000 --- a/util/config.md +++ /dev/null @@ -1,26 +0,0 @@ -CLI config utility -================== - -Usage: - - -config - displays all config entries - - -config family - displays all config entries for family (system, database, etc) - - -config family key - displays single config entry for specified family and key - -config family key value - set config entry for specified family and key to value and display result - - - -Notes: - Setting config entries which are manually set in .htconfig.php may result in -conflict between database settings and the manual startup settings. -