diff --git a/start-dev-env.sh b/start-dev-env.sh index 877dc6af..51687af7 100755 --- a/start-dev-env.sh +++ b/start-dev-env.sh @@ -11,7 +11,7 @@ if [ "$1" = "--setup" ]; then #bash configure.sh reinstall touch .setupdevenv - apt install -y vim + apt update && apt install -y vim chown -R $3:$4 /code chown -R $3:$4 /var/www fi @@ -108,4 +108,4 @@ GROUP_ID=$(id -g) USER=$(id -un) xhost + docker run -ti --entrypoint bash --name odmdev -v $(pwd):/code -v "$DATA":/datasets -p $PORT:3000 --privileged -e DISPLAY -e LANG=C.UTF-8 -e LC_ALL=C.UTF-8 -v="/tmp/.X11-unix:/tmp/.X11-unix:rw" -v="$HOME/.odm-dev-home:/home/$USER" $IMAGE -c "/code/start-dev-env.sh --setup $USER $USER_ID $GROUP_ID $QTC" -exit 0 \ No newline at end of file +exit 0