#!/bin/bash

#Menu system for launching appropriate scripts based on user choice
source qm.variables

#Fix to automatically export ports on Mac OS. 
os=$(uname)
if [ "$os" = "Darwin" ]; then
	touch .qm_export_ports
fi

docker run -it --rm -v $(pwd)/$line:/${PWD##*/} -w /${PWD##*/} $dockerImage lib/menu.sh

if [ -f .nodename ]; then
	nodename=$(cat .nodename)
	rm -f .nodename
	cd $nodename	
	sudo ./start.sh	
fi

#!/bin/bash

#Menu system for launching appropriate scripts based on user choice
source qm.variables

#Fix to automatically export ports on Mac OS. 
os=$(uname)
if [ "$os" = "Darwin" ]; then
	touch .qm_export_ports
fi

docker run -it --rm -v $(pwd)/$line:/${PWD##*/} -w /${PWD##*/} $dockerImage lib/menu.sh

if [ -f .nodename ]; then
	nodename=$(cat .nodename)
	rm -f .nodename
	cd $nodename	
	./start.sh	
fi

Remove sudo as now all scripts are running in docker
Remove sudo as now all scripts are running in docker
