[ 
https://issues.apache.org/jira/browse/SOLR-12231?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Lihua Wang updated SOLR-12231:
------------------------------
    Description: 
I noticed that there are a couple of minor issues with the init.d script in 
pretty much every version. 

Basically, a semicolon (or an escaped semicolon) is missing in the 
*{color:#205081}BLUE{color}* lines blow:

 

if [ -n "$RUNAS" ]; then
 {color:#205081}su -c "SOLR_INCLUDE=\"$SOLR_ENV\" 
\"$SOLR_INSTALL_DIR/bin/solr\" $SOLR_CMD" - "$RUNAS"{color}
 else
 {color:#205081}SOLR_INCLUDE="$SOLR_ENV" "$SOLR_INSTALL_DIR/bin/solr" 
"$SOLR_CMD"{color}
 fi

 

*With the {color:#d04437}added semicolons{color} (escaped where necessary), the 
code would look like:* 

if [ -n "$RUNAS" ]; then
 *{color:#8eb021}{color:#8eb021}su -c 
"SOLR_INCLUDE=\"$SOLR_ENV\"{color:#d04437}\;{color}{color} 
\"$SOLR_INSTALL_DIR/bin/solr\" $SOLR_CMD" - 
"$RUNAS"{color}{color:#8eb021}*{color}*
 *else*
 
*{color:#8eb021}*SOLR_INCLUDE="$SOLR_ENV"{color:#d04437};{color}{color}{color:#8eb021}
 "$SOLR_INSTALL_DIR/bin/solr" "$SOLR_CMD"{color}*
 fi

 

  was:
I noticed that there are a couple of minor issues with the init.d script in 
pretty much every version. 

Basically, a semicolon (or an escaped semicolon) is missing in the 
*{color:#205081}BLUE{color}* lines blow:

 

if [ -n "$RUNAS" ]; then
 {color:#205081}su -c "SOLR_INCLUDE=\"$SOLR_ENV\" 
\"$SOLR_INSTALL_DIR/bin/solr\" $SOLR_CMD" - "$RUNAS"{color}
 else
 {color:#205081}SOLR_INCLUDE="$SOLR_ENV" "$SOLR_INSTALL_DIR/bin/solr" 
"$SOLR_CMD"{color}
 fi

 

*With the {color:#d04437}added semicolons{color} (escaped where necessary), the 
code would look like:* 

if [ -n "$RUNAS" ]; then
 *{color:#8eb021}su -c "SOLR_INCLUDE=\"$SOLR_ENV\"{color:#d04437}\;{color} 
\"$SOLR_INSTALL_DIR/bin/solr\" $SOLR_CMD" - "$RUNAS"{color}*
else
 *{color:#8eb021}SOLR_INCLUDE="$SOLR_ENV"{color:#d04437};{color} 
"$SOLR_INSTALL_DIR/bin/solr" "$SOLR_CMD"{color}*
fi

 


> /etc/init.d/solr problem
> ------------------------
>
>                 Key: SOLR-12231
>                 URL: https://issues.apache.org/jira/browse/SOLR-12231
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: scripts and tools
>    Affects Versions: 7.3
>         Environment: Centos 7.4 
> java-1.8.0-openjdk
>            Reporter: Lihua Wang
>            Priority: Minor
>
> I noticed that there are a couple of minor issues with the init.d script in 
> pretty much every version. 
> Basically, a semicolon (or an escaped semicolon) is missing in the 
> *{color:#205081}BLUE{color}* lines blow:
>  
> if [ -n "$RUNAS" ]; then
>  {color:#205081}su -c "SOLR_INCLUDE=\"$SOLR_ENV\" 
> \"$SOLR_INSTALL_DIR/bin/solr\" $SOLR_CMD" - "$RUNAS"{color}
>  else
>  {color:#205081}SOLR_INCLUDE="$SOLR_ENV" "$SOLR_INSTALL_DIR/bin/solr" 
> "$SOLR_CMD"{color}
>  fi
>  
> *With the {color:#d04437}added semicolons{color} (escaped where necessary), 
> the code would look like:* 
> if [ -n "$RUNAS" ]; then
>  *{color:#8eb021}{color:#8eb021}su -c 
> "SOLR_INCLUDE=\"$SOLR_ENV\"{color:#d04437}\;{color}{color} 
> \"$SOLR_INSTALL_DIR/bin/solr\" $SOLR_CMD" - 
> "$RUNAS"{color}{color:#8eb021}*{color}*
>  *else*
>  
> *{color:#8eb021}*SOLR_INCLUDE="$SOLR_ENV"{color:#d04437};{color}{color}{color:#8eb021}
>  "$SOLR_INSTALL_DIR/bin/solr" "$SOLR_CMD"{color}*
>  fi
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to