diff options
author | Treer <treer.git@the-bordello.com> | 2016-04-25 22:09:15 +1000 |
---|---|---|
committer | Treer <treer.git@the-bordello.com> | 2016-04-25 22:09:15 +1000 |
commit | f336f38ad505df8cf85cbe7ae9ce3c1d363a1ded (patch) | |
tree | 6196e0aa96468b49f66650c340e17123b4f18ab0 /util | |
parent | d67d8b6d6e95025525d11ce42892fb9bf40abf28 (diff) | |
download | volse-hubzilla-f336f38ad505df8cf85cbe7ae9ce3c1d363a1ded.tar.gz volse-hubzilla-f336f38ad505df8cf85cbe7ae9ce3c1d363a1ded.tar.bz2 volse-hubzilla-f336f38ad505df8cf85cbe7ae9ce3c1d363a1ded.zip |
improve error message in config and pconfig
Diffstat (limited to 'util')
-rwxr-xr-x | util/config | 5 | ||||
-rwxr-xr-x | util/pconfig | 8 |
2 files changed, 13 insertions, 0 deletions
diff --git a/util/config b/util/config index 5113bd8ec..d4bcd5da1 100755 --- a/util/config +++ b/util/config @@ -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(); diff --git a/util/pconfig b/util/pconfig index 77fcd6d38..1afba8306 100755 --- a/util/pconfig +++ b/util/pconfig @@ -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'); |