Skip to content

Commit

Permalink
Handle OPTIONS as additional argments
Browse files Browse the repository at this point in the history
  • Loading branch information
nak3 committed Nov 9, 2017
1 parent 335053a commit 549f540
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions images/node/scripts/origin-node-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
set -eu

conf=${CONFIG_FILE:-/etc/origin/node/node-config.yaml}
opts=${OPTIONS:---loglevel=2}
if [ "$#" -ne 0 ]; then
opts=""
if [[ "$#" -eq 0 ]]; then
eval "set -- ${OPTIONS:---loglevel=2}"
fi

exec /usr/bin/openshift start node "--config=${conf}" ${opts} $@
exec /usr/bin/openshift start node "--config=${conf}" "$@"

0 comments on commit 549f540

Please sign in to comment.