From f7db2ba8c55a246eab769cc731b284401dcfad6c Mon Sep 17 00:00:00 2001 From: nchamo Date: Tue, 13 Aug 2019 17:49:42 -0300 Subject: [PATCH] Added new debug mode and set th detached flag --- webodm.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/webodm.sh b/webodm.sh index c95e1398..df0886c3 100755 --- a/webodm.sh +++ b/webodm.sh @@ -20,6 +20,7 @@ fi load_default_node=true dev_mode=false +debug_mode=false # Load default values source .env @@ -73,12 +74,14 @@ case $key in ;; --debug) export WO_DEBUG=YES + debug_mode=true shift # past argument ;; --dev) export WO_DEBUG=YES export WO_DEV=YES dev_mode=true + debug_mode=true shift # past argument ;; --broker) @@ -244,7 +247,11 @@ start(){ echo "Will enable SSL ($method)" fi - run "$command start || $command up" + if [[ $debug_mode = true ]]; then + run "$command start || $command up" + else + run "$command start || $command up -d" + fi } down(){