1
0
mirror of https://bitbucket.org/jsuto/piler.git synced 2025-04-09 19:16:03 +02:00

Fixed 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

@ -180,7 +180,7 @@ start_services() {
start_piler() { start_piler() {
if [[ ! -f "${VOLUME_DIR}/manticore/main1.spp" ]]; then if [[ ! -f "${VOLUME_DIR}/manticore/main1.spp" ]]; then
log "main1.spp does not exist, creating index files" 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 fi
# No pid file should exist for piler # No pid file should exist for piler