Fixed #1280 to use PILER_USER env var for indexer command

Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
Janos SUTO 2023-02-18 11:16:14 +01:00
parent 7e9a4bcf8d
commit b83ebdd8f1

View File

@ -180,7 +180,7 @@ start_services() {
start_piler() {
if [[ ! -f "${VOLUME_DIR}/manticore/main1.spp" ]]; then
log "main1.spp does not exist, creating index files"
su -c "indexer --all --config ${SPHINX_CONF}" piler
su -c "indexer --all --config ${SPHINX_CONF}" "$PILER_USER"
fi
# No pid file should exist for piler