caching-approaches-comparison

fix standalone/docker install

2/20/2020 11:54:06 PM

Changes

configure 13(+9 -4)

Details

configure 13(+9 -4)

diff --git a/configure b/configure
index 99d4596..260dc16 100755
--- a/configure
+++ b/configure
@@ -5,7 +5,12 @@ if [ "$(whoami)" != 'root' ]; then
     exit 1;
 fi
 
-if [ -z $1 ]; then
+type="standalone"
+if [[ ! -z $1 ]]; then
+	type=$1
+fi
+
+if [[ $type = "standalone" ]]; then
 	apt-get update -qq
 
 	apt-get -qq -y install software-properties-common
@@ -33,7 +38,7 @@ if [ -z $1 ]; then
 	chmod +x /usr/local/bin/docker-compose
 fi
 
-cd adapters; bash configure $1 $2 cd ..
-cd approaches; bash configure $1 $2 cd ..
-cd applications; bash configure $1 $2 cd ..
+cd adapters; bash configure $2 $3; cd ..
+cd approaches; bash configure $2 $3; cd ..
+cd applications; bash configure $2 $3; cd ..
 wait
\ No newline at end of file