improve error message in config and pconfig

This commit is contained in:
Treer 2016-04-25 22:09:15 +10:00
parent d67d8b6d6e
commit f336f38ad5
2 changed files with 13 additions and 0 deletions

View File

@ -3,6 +3,11 @@
// Red config utility
if(!file_exists('include/cli_startup.php')) {
echo 'Run config from the top level Hubzilla web directory, as util/config <args>' . PHP_EOL;
exit(1);
}
require_once('include/cli_startup.php');
cli_startup();

View File

@ -3,6 +3,14 @@
// Red pconfig utility
if(!file_exists('include/cli_startup.php')) {
echo 'Run pconfig from the top level Hubzilla web directory, as util/pconfig <args>' . PHP_EOL;
exit(1);
}
require_once('include/cli_startup.php');
require_once('include/zot.php');