3 USER_NAME="@@ARVADOS_USER_NAME@@"
5 useradd $USER_NAME -s /bin/bash
6 mkdir /home/$USER_NAME/.ssh -p
8 cp ~root/.ssh/authorized_keys /home/$USER_NAME/.ssh/authorized_keys
11 mkdir -p /home/$USER_NAME/.config/arvados;
12 echo "ARVADOS_API_HOST=api" >> /home/$USER_NAME/.config/arvados/settings.conf
13 echo "ARVADOS_API_HOST_INSECURE=yes" >> /home/$USER_NAME/.config/arvados/settings.conf
14 echo "ARVADOS_API_TOKEN=$(cat /tmp/superuser_token)" >> /home/$USER_NAME/.config/arvados/settings.conf
15 chmod 600 /home/$USER_NAME/.config/arvados/settings.conf
17 chown $USER_NAME:$USER_NAME /home/$USER_NAME -R
19 rm -f /tmp/superuser_token