Skip to content

Commit

Permalink
small docker fixes to fix loglevel switch in tools
Browse files Browse the repository at this point in the history
Signed-off-by: Mic Bowman <[email protected]>
  • Loading branch information
cmickeyb authored and bvavala committed Jun 12, 2024
1 parent 37ab11b commit 214e656
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
6 changes: 2 additions & 4 deletions docker/tools/start_client.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,13 @@ SCRIPT_NAME=$(basename ${BASH_SOURCE[-1]} )
# -----------------------------------------------------------------
# Process command line arguments
# -----------------------------------------------------------------
F_LOGLEVEL=
F_MODE=build
F_INTERFACE=
F_LEDGER_URL=

F_USAGE='-i|--interface [hostname] -1|--ledger [url] --loglevel [debug|info|warn] -m|--mode [build|copy|skip]'
F_USAGE='-i|--interface [hostname] -1|--ledger [url] -m|--mode [build|copy|skip]'
SHORT_OPTS='i:l:m:'
LONG_OPTS='interface:,ledger:,loglevel:,mode:'
LONG_OPTS='interface:,ledger:,mode:'

TEMP=$(getopt -o ${SHORT_OPTS} --long ${LONG_OPTS} -n "${SCRIPT_NAME}" -- "$@")
if [ $? != 0 ] ; then echo "Usage: ${SCRIPT_NAME} ${F_USAGE}" >&2 ; exit 1 ; fi
Expand All @@ -43,7 +42,6 @@ while true ; do
case "$1" in
-i|--interface) F_INTERFACE="$2" ; shift 2 ;;
-l|--ledger) F_LEDGER_URL="$2" ; shift 2 ;;
--loglevel) F_LOGLEVEL="--loglevel $2" ; shift 2 ;;
-m|--mode) F_MODE="$2" ; shift 2 ;;
--help) echo "Usage: ${SCRIPT_NAME} ${F_USAGE}"; exit 0 ;;
--) shift ; break ;;
Expand Down
6 changes: 3 additions & 3 deletions docker/tools/start_services.sh
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,9 @@ yell start the services
# -----------------------------------------------------------------
. ${PDO_INSTALL_ROOT}/bin/activate

try ${PDO_HOME}/bin/ss-start.sh --output ${PDO_HOME}/logs ${F_LOG_LEVEL} ${F_CLEAN}
try ${PDO_HOME}/bin/ps-start.sh --output ${PDO_HOME}/logs ${F_LOG_LEVEL} ${F_CLEAN}
try ${PDO_HOME}/bin/es-start.sh --output ${PDO_HOME}/logs ${F_LOG_LEVEL} ${F_CLEAN}
try ${PDO_HOME}/bin/ss-start.sh --output ${PDO_HOME}/logs ${F_LOGLEVEL} ${F_CLEAN}
try ${PDO_HOME}/bin/ps-start.sh --output ${PDO_HOME}/logs ${F_LOGLEVEL} ${F_CLEAN}
try ${PDO_HOME}/bin/es-start.sh --output ${PDO_HOME}/logs ${F_LOGLEVEL} ${F_CLEAN}

# save the site.toml file if the configuration files were generated here
if [ "${F_MODE,,}" == "build" ]; then
Expand Down

0 comments on commit 214e656

Please sign in to comment.