diff options
| author | luccioman <luccioman@users.noreply.github.com> | 2018-11-27 11:36:40 +0100 |
|---|---|---|
| committer | luccioman <luccioman@users.noreply.github.com> | 2018-11-27 11:36:40 +0100 |
| commit | 106bfd0e5f7cc9cabf32a5c2110db44e9200bdd3 (patch) | |
| tree | 3959236abc4ca5b8fb2e529e38d42c7909b73c9e /bin/checkConfFile.sh | |
| parent | 17ad1f7e65475f6f5de96f69e74c938fac699768 (diff) | |
Also check yacy.conf file existence in shell scripts where relevant
Diffstat (limited to 'bin/checkConfFile.sh')
| -rw-r--r-- | bin/checkConfFile.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/checkConfFile.sh b/bin/checkConfFile.sh new file mode 100644 index 000000000..9aa86e7de --- /dev/null +++ b/bin/checkConfFile.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env sh +# Check that a yacy configuration file exists under the DATA folder set by the variable YACY_DATA_PATH +# Exits with an error message and status 2 when the file is not found or is not a regular file + +if [ ! -f "$YACY_DATA_PATH/SETTINGS/yacy.conf" ]; then + echo "No YaCy configuration file found at $YACY_DATA_PATH/SETTINGS/yacy.conf" + exit 2 +fi
\ No newline at end of file |
