The error you see:
-sh: __rvm_add_to_path: command not found
suggests that you use sh
shell - this is not supported shell, you need to switch the user to bash
:
chsh -s /bin/bash $USER
I'm not sure if it needs any extra params for domain users or if you need to use different command for it - but you need to change the shell to bash
.