diff --git a/api/root/etc/s6-overlay/s6-rc.d/run-service/finish b/api/root/etc/s6-overlay/s6-rc.d/run-service/finish new file mode 100755 index 0000000000000000000000000000000000000000..41f0b9d2406b40643e3de24a4aa58bc7d3c51786 --- /dev/null +++ b/api/root/etc/s6-overlay/s6-rc.d/run-service/finish @@ -0,0 +1,12 @@ +#!/command/with-contenv bash + +ITK_UID=$(id -u itk) + +# Check if the UID is different from 1111 +if [ "$ITK_UID" -ne 1111 ]; then + echo "Taking posession of /workspace with 'itk' UID $ITK_UID." + demiown -R itk:itk /workspace +else + echo "The user 'itk' has UID 1111, meaning it is probably not cloning your local UID." +fi +echo "PANDA"