Skip to content

Commit e218550

Browse files
committed
create group shared folders if they dont exist
1 parent 50b46bf commit e218550

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

config/clusters/maap/staging.values.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,14 @@ jupyterhub:
2020
command:
2121
- sh
2222
- -c
23+
# create the shared group directories and fix ownership
24+
# so that they are owned by the user
2325
- >
2426
id &&
27+
mkdir -p /home/jovyan/shared-group/CPU_L &&
28+
mkdir -p /home/jovyan/shared-group/GPU_T4 &&
2529
chown 1000:1000 /home/jovyan /home/jovyan/shared /home/jovyan/shared-public &&
26-
if [ -d "/home/jovyan/shared-group" ] && [ "$(ls -A /home/jovyan/shared-group)" ]; then
27-
chown 1000:1000 /home/jovyan/shared-group/* || true;
28-
fi &&
30+
chown 1000:1000 /home/jovyan/shared-group/* &&
2931
ls -lhd /home/jovyan
3032
securityContext:
3133
runAsUser: 0

0 commit comments

Comments
 (0)