[ 
https://issues.apache.org/jira/browse/KNOX-1774?focusedWorklogId=210357&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-210357
 ]

ASF GitHub Bot logged work on KNOX-1774:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 08/Mar/19 21:09
            Start Date: 08/Mar/19 21:09
    Worklog Time Spent: 10m 
      Work Description: smolnar82 commented on pull request #65: KNOX-1774 - 
Introducing environment variables in gateway/knoxcli/ldap/knoxshell scripts for 
customization
URL: https://github.com/apache/knox/pull/65#discussion_r263930671
 
 

 ##########
 File path: gateway-release/home/bin/ldap.sh
 ##########
 @@ -17,44 +17,43 @@
 #  limitations under the License.
 #
 
-# App name
+# The app's label
 APP_LABEL=LDAP
 
-# App name
+# The app's name
 APP_NAME=ldap
 
-# App name
-APP_JAR_NAME=ldap.jar
-
 # start/stop script location
 APP_BIN_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
 
+# The app's JAR name
+APP_JAR="$APP_BIN_DIR/ldap.jar"
+
 # Setup the common environment
 . $APP_BIN_DIR/knox-env.sh
 
-# The app's jar name
-APP_JAR="$APP_BIN_DIR/$APP_JAR_NAME"
+# Source common functions
+. $APP_BIN_DIR/knox-functions.sh
 
 # The app's home dir
 APP_HOME_DIR=`dirname $APP_BIN_DIR`
 
-# The apps home dir
-APP_CONF_DIR="$APP_HOME_DIR/conf"
+# The app's conf dir
+DEFAULT_APP_CONF_DIR="$APP_HOME_DIR/conf"
+APP_CONF_DIR=${KNOX_LDAP_CONF_DIR:-$DEFAULT_APP_CONF_DIR}
 
 # The app's log dir
-APP_LOG_DIR="$APP_HOME_DIR/logs"
+DEFAULT_APP_LOG_DIR="$APP_HOME_DIR/logs"
+APP_LOG_DIR=${KNOX_LDAP_LOG_DIR:-$DEFAULT_APP_LOG_DIR}
 
-# The app's Log4j options
-APP_LOG_OPTS=""
+# The app's logging options
+APP_LOG_OPTS="$KNOX_LDAP_LOG_OPTS"
 
 # The app's memory options
-APP_MEM_OPTS=""
+APP_MEM_OPTS="$KNOX_LDAP_MEM_OPTS"
 
 # The app's debugging options
-APP_DBG_OPTS=""
-
-# Start, stop, status, clean
-APP_LAUNCH_COMMAND=$1
+APP_DBG_OPTS="$KNOX_LDAP_DBG_OPTS"
 
 # The app's PID
 APP_PID=0
 
 Review comment:
   Nice catch, will fix it
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 210357)
    Time Spent: 5.5h  (was: 5h 20m)

> Expose gateway.sh/ldap.sh environment variables for customization
> -----------------------------------------------------------------
>
>                 Key: KNOX-1774
>                 URL: https://issues.apache.org/jira/browse/KNOX-1774
>             Project: Apache Knox
>          Issue Type: Sub-task
>            Reporter: Kevin Risden
>            Assignee: Sandor Molnar
>            Priority: Major
>             Fix For: 1.3.0
>
>          Time Spent: 5.5h
>  Remaining Estimate: 0h
>
> Currently there are a bunch of APP_* environment variables that can't be 
> customized without modifying the *.sh script. 



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

Reply via email to