From f629aa96b4a6939e383ced3e2d72a324e04303f7 Mon Sep 17 00:00:00 2001 From: Victor Chang Date: Wed, 1 Nov 2023 13:38:00 -0700 Subject: [PATCH] Ue current user ID and group ID Signed-off-by: Victor Chang --- deploy/monai-deploy-express/init.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/monai-deploy-express/init.sh b/deploy/monai-deploy-express/init.sh index a99caa6..afff762 100755 --- a/deploy/monai-deploy-express/init.sh +++ b/deploy/monai-deploy-express/init.sh @@ -25,6 +25,6 @@ mkdir -p $RUNDIR/mongodb/ && echo "Created $RUNDIR/mongodb/" mkdir -p $RUNDIR/mdwm/ && echo "Created $RUNDIR/mdwm/" mkdir -p $RUNDIR/mdtm/ && echo "Created $RUNDIR/mdtm/" mkdir -p $RUNDIR/mdig/ && echo "Created $RUNDIR/mdig/" -sudo chown 1000:1000 -R $RUNDIR/esdata && echo "Permission updated" +sudo chown $(id -u):$(id -g) -R $RUNDIR/esdata && echo "Permission updated" echo "Directories setup" echo "Ready to run docker compose up"