pkgbuilds/lxc-docker/lxc-docker.install
Tom Willemse 7f03eea41e Add lxc-docker.install
Adding this install script, which adds a `docker' group, allows users to
be added to the `docker' group, which in turn allows them to run the
docker client without being root.
2013-10-05 11:18:56 +02:00

18 lines
239 B
Text

post_install()
{
if ! getent group docker >/dev/null; then
groupadd --system docker
fi
}
post_upgrade()
{
post_install $1
}
post_remove()
{
if getent group docker >/dev/null; then
groupdel docker
fi
}