File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed
Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ createuser=false
4040POS_PARMS=" "
4141
4242while (( "$# ")) ; do
43+ # shellcheck disable=SC2221,SC2222
4344 case " $1 " in
4445 -ns | --namespace)
4546 if [ -n " $2 " ] && [ " ${2: 0: 1} " != " -" ]; then
@@ -218,7 +219,9 @@ if [ "$createuser" == "true" ]; then
218219 log_warn " You can create a new user with the appropriate access controls by calling the logging/bin/user.sh script directly."
219220 else
220221 if [ -z " $tenant " ]; then
222+ set -x
221223 ./logging/bin/user.sh CREATE -ns " $namespace " -u " $inituser " " $passwdarg "
224+ set +x
222225 else
223226 ./logging/bin/user.sh CREATE -ns " $namespace " -t " $tenant " -u " $inituser " " $passwdarg "
224227 fi
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ cp -R logging/eventrouter/eventrouter.yaml "$logDir"/eventrouter.yaml
1717
1818# Replace placeholders
1919log_debug " Replacing logging namespace for files in [$logDir ]"
20- v4m_replace " __LOG_NS__" " $LOG_NS " " $logDir " /eventrouter.yaml
20+ v4m_replace " __LOG_NS__" " $LOG_NS " " $logDir " /eventrouter.yaml
2121
2222log_info " Removing Event Router [$( date) ]"
2323# Remove existing instance of Event Router in the kube-system namespace (if present).
Original file line number Diff line number Diff line change 5151POS_PARMS=" "
5252
5353while (( "$# ")) ; do
54+ # shellcheck disable=SC2221,SC2222
5455 case " $1 " in
5556 -ns | --namespace)
5657 if [ -n " $2 " ] && [ " ${2: 0: 1} " != " -" ]; then
@@ -120,7 +121,7 @@ if [ "$#" -lt 1 ]; then
120121 show_usage
121122 exit 1
122123else
123- action=$( echo " $1 " | tr ' [ a-z] ' ' [ A-Z] ' )
124+ action=$( echo " $1 " | tr ' a-z' ' A-Z' )
124125 shift
125126
126127 if [ " $action " != " CREATE" ] && [ " $action " != " DELETE" ]; then
You can’t perform that action at this time.
0 commit comments