Skip to content

Commit

Permalink
extra logic to allow default flag overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
chubing authored Mar 24, 2020
1 parent ca490cd commit 53f923f
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions container_files/usr-local-bin/library.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,9 @@ linkGrouperSecrets() {
}

prepDaemon() {
export GROUPER_DAEMON=true
export RUN_TOMEE=true

if [ -z "$GROUPER_DAEMON" ]; then export GROUPER_DAEMON=true; fi
if [ -z "$RUN_TOMEE" ]; then export RUN_TOMEE=true; fi

setupLoggingPipe
setupGrouperLogPipe
Expand All @@ -78,9 +79,9 @@ prepDaemon() {
}

prepSCIM() {
export GROUPER_SCIM=true
export RUN_APACHE=true
export RUN_TOMEE=true
if [ -z "$GROUPER_SCIM" ]; then export GROUPER_SCIM=true; fi
if [ -z "$RUN_APACHE" ]; then export RUN_APACHE=true; fi
if [ -z "$RUN_TOMEE" ]; then export RUN_TOMEE=true; fi

setupLoggingPipe
setupGrouperLogPipe
Expand All @@ -93,10 +94,10 @@ prepSCIM() {
}

prepUI() {
export GROUPER_UI=true
export RUN_APACHE=true
export RUN_SHIB_SP=true
export RUN_TOMEE=true
if [ -z "$GROUPER_UI" ]; then export GROUPER_UI=true; fi
if [ -z "$RUN_APACHE" ]; then export RUN_APACHE=true; fi
if [ -z "$RUN_SHIB_SP" ]; then export RUN_SHIB_SP=true; fi
if [ -z "$RUN_TOMEE" ]; then export RUN_TOMEE=true; fi

setupLoggingPipe
setupGrouperLogPipe
Expand All @@ -111,9 +112,9 @@ prepUI() {

prepWS() {

export GROUPER_WS=true
export RUN_APACHE=true
export RUN_TOMEE=true
if [ -z "$GROUPER_WS" ]; then export GROUPER_WS=true; fi
if [ -z "$RUN_APACHE" ]; then export RUN_APACHE=true; fi
if [ -z "$RUN_TOMEE" ]; then export RUN_TOMEE=true; fi
setupLoggingPipe
setupGrouperLogPipe
setupHttpdLogPipe
Expand Down

0 comments on commit 53f923f

Please sign in to comment.