Update solr.tpl

This commit is contained in:
midoks 2019-09-12 23:12:41 +08:00
parent b38e4b47fb
commit 394618b2ac
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ case "$1" in
esac
if [ -n "$RUNAS" ]; then
sh -c "SOLR_INCLUDE=\"$SOLR_ENV\" \"$SOLR_INSTALL_DIR/bin/solr\" $SOLR_CMD" - "$RUNAS"
su - "$RUNAS" -c "SOLR_INCLUDE=\"$SOLR_ENV\" \"$SOLR_INSTALL_DIR/bin/solr\" $SOLR_CMD"
else
SOLR_INCLUDE="$SOLR_ENV" "$SOLR_INSTALL_DIR/bin/solr" "$SOLR_CMD"
fi