#!/bin/bash
chown dokku:dokku $DOKKU_ROOT
chmod 0644 $DOKKU_ROOT/.dockercfg

groupmod -g $DOCKER_GID docker
usermod -a -G docker dokku

sudo -nE -u dokku bash -c '/usr/local/bin/prepare_dokku'

exec /usr/bin/supervisord

#!/bin/bash
chown dokku:dokku $DOKKU_ROOT
chmod 0644 $DOKKU_ROOT/.dockercfg

getent group docker && groupmod -g $DOCKER_GID docker || groupadd -g $DOCKER_GID docker

usermod -a -G docker dokku

sudo -nE -u dokku bash -c '/usr/local/bin/prepare_dokku'

exec /usr/bin/supervisord

Make this command work even when docker is not installed and thus no group of its name exists.
Make this command work even when docker is not installed and thus no group of its name exists.
