summaryrefslogtreecommitdiff
path: root/app-misc/elasticsearch/files/elasticsearch-systemd-pre-exec
blob: 30f773638d37b5b5fbc2c42e039c09ac33c11be6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

# CONF_FILE setting was removed
if [ ! -z "$CONF_FILE" ]; then
    echo "CONF_FILE setting is no longer supported. elasticsearch.yml must be placed in the config directory and cannot be renamed."
    exit 1
fi

# fails to start without keystore
if [ ! -f "${ES_PATH_CONF}/elasticsearch.keystore" ]; then
    "${ES_HOME}/bin/elasticsearch-keystore" create
fi