From 394618b2ac772907ce2df28edc762b02a0934a0a Mon Sep 17 00:00:00 2001 From: midoks Date: Thu, 12 Sep 2019 23:12:41 +0800 Subject: [PATCH] Update solr.tpl --- plugins/solr/init.d/solr.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/solr/init.d/solr.tpl b/plugins/solr/init.d/solr.tpl index c2194130a..c566c590e 100644 --- a/plugins/solr/init.d/solr.tpl +++ b/plugins/solr/init.d/solr.tpl @@ -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