Fixed script to create users home directory
I found this bug debugging ScienceBox Kubernetes,
To create the home directory from the cernbox's pod in kubernetes you should to call
bash configure_gateway.sh add unix
and the script
./createUsersHome.sh
But createUsersHome.sh is calling itself in the recursion
[root@cernbox ~]# ./createUsersHome.sh
Pre-creating user home folders...
creating user0
Pre-creating user home folders...
creating user0
Pre-creating user home folders
...
this fix is calling the right script inside, producing
[root@cernbox ~]# ./createUsersHome.sh
Pre-creating user home folders...
creating user0
uid=1000(user0) gid=1000 groups=1000
success: owner of directory /eos/docker/user/u/user0/ is now uid=1000 gid=1000
success: mode of file/directory /eos/docker/user/u/user0/ is now '2700'
success: updated volume quota for uid=1000 for node /eos/docker/user/
success: updated inode quota for uid=1000 for node /eos/docker/user/
creating user1
uid=1001(user1) gid=1001 groups=1001
success: owner of directory /eos/docker/user/u/user1/ is now uid=1001 gid=1001
success: mode of file/directory /eos/docker/user/u/user1/ is now '2700'
success: updated volume quota for uid=1001 for node /eos/docker/user/
success: updated inode quota for uid=1001 for node /eos/docker/user/
creating user2
....