diff --git a/tools/itango/start-DS.sh b/tools/itango/start-DS.sh index 6a1cb5ddf4a39c55df9afee55288e0fe517fa503..90ea2e4657249781af2d098a2adacf5da259b1e5 100755 --- a/tools/itango/start-DS.sh +++ b/tools/itango/start-DS.sh @@ -36,9 +36,11 @@ if [ -f ${runThis} ]; then else myDir=${PWD}/$(dirname ${deviceServer}) fi -deviceServerPath=${myDir//${HOME}\//\/hosthome\/} -if [ -f ${deviceServerPath}/requirements.txt ]; then +deviceServerPath=${myDir/${HOME}/\/hosthome} +if [ -f ${myDir}/requirements.txt ]; then + echo "Installing required Python modules with pip3..." docker exec -it itango pip3 install -r ${deviceServerPath}/requirements.txt + echo "Installing required Python modules with pip3 done." fi docker exec -it itango python3 ${deviceServerPath}/${runThis} ${instance} ${@}