diff --git a/services/standaloneworker/entrypoint.sh b/services/standaloneworker/entrypoint.sh index f7f16a60de127edc65917517fe44a98c8f4f26e8..5a3ec21664df46bac4f6c49956430b1427461db9 100644 --- a/services/standaloneworker/entrypoint.sh +++ b/services/standaloneworker/entrypoint.sh @@ -12,6 +12,20 @@ chmod 777 /dev/net/tun #PROXY_IP=$(ping proxy -c1 | head -n1 | cut -d '(' -f2 | cut -d')' -f1) #echo "$PROXY_IP rosetta.platform" >> /etc/hosts +# Create shared data directories +mkdir -p /shared/scratch +chmod 777 /shared/scratch + +mkdir -p /shared/data/shared +chmod 777 /shared/data/shared + +mkdir -p /shared/data/users +chown rosetta:rosetta /shared/data/users/ + +mkdir -p /shared/data/users/testuser +chown testuser:testuser /shared/data/users/testuser + + #--------------------- # Entrypoint command #---------------------