Fix sphinx version in postinstall

Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
Janos SUTO 2019-12-15 14:13:26 +01:00
parent 9c2e2e8fe4
commit 26808ca40d

View File

@ -360,6 +360,8 @@ execute_post_install_tasks() {
chmod +x "$SPHINXCFG" chmod +x "$SPHINXCFG"
echo "Done." echo "Done."
if indexer --version | grep ^Sphinx\ 3; then sed -i 's/220/311/' "$SPHINXCFG"; fi
echo -n "Initializing sphinx indices... "; echo -n "Initializing sphinx indices... ";
su "$PILERUSER" -c "indexer --all --config ${SPHINXCFG}" su "$PILERUSER" -c "indexer --all --config ${SPHINXCFG}"
echo "Done." echo "Done."