
this splits the giant user-data script into smaller modules. this makes things easier to manage and also permits us to use cloud-config scripts in addition to shell scripts.
13 lines
350 B
Bash
13 lines
350 B
Bash
#!/bin/sh
|
|
|
|
# Under atomic, we need to make sure the 'docker' group exists in
|
|
# /etc/group (because /lib/group cannot be modified by usermod).
|
|
if ! grep -q docker /etc/group; then
|
|
grep docker /lib/group >> /etc/group
|
|
fi
|
|
|
|
# make centos user a member of the docker group
|
|
# (so you can run docker commands as the centos user)
|
|
usermod -G docker centos
|
|
|