Changes
Page history
Initial commit
authored
Jul 13, 2021
by
David Beniamine
Show whitespace changes
Inline
Side-by-side
Deploy-a-new-user-container.md
0 → 100644
View page @
4de425dc
# Prerequisite
To deploy a new user, you need its name and email.
# Deploy one or several new users
1.
Connect the main server as root
2.
Go to
`/home/VNC/dev`
3.
Create a
`users.csv`
file that shoud look like :
```
csv
firstname1 lastname1,email1
firstname2 lastname2,email2
```
4.
Run
`./generate_instances.sh <host.fqdn> <num>`
replacing
`<num>`
by the number obtained at step 1.
5.
A file
`new_users.csv`
has been generated, run:
```
bash
cat
new_users.csv |
sed
's/[^,]*,\([^,]*\),\([^,]*\),\([^,]*\),\([^,]*\)$/\2|\1|\4/'
```
# Notify the user
Once you are done and you have check that all new containers are working you can run
`/home/VNC/dev/sendpass.sh /home/VNC/dev/new_users.csv`
to send a welcome mail to all new users.