=== modified file 'keystone.postinst' --- keystone.postinst 2012-02-27 12:55:23 +0000 +++ keystone.postinst 2012-02-27 13:18:52 +0000 @@ -7,14 +7,19 @@ . /usr/share/debconf/confmodule . /usr/share/dbconfig-common/dpkg/postinst - if ! getent passwd keystone > /dev/null 2>&1 - then - adduser --system --home /var/lib/keystone --no-create-home --shell /bin/false keystone - fi if ! getent group keystone > /dev/null 2>&1 then addgroup --system keystone >/dev/null fi + if ! getent passwd keystone > /dev/null 2>&1 + then + adduser --system --home /var/lib/keystone --ingroup keystone --no-create-home --shell /bin/false keystone + fi + if [ "$(id -gn keystone)" = "nogroup" ] + then + usermod -g keystone keystone + fi + chown -R keystone:keystone /var/log/keystone /etc/keystone dbc_go keystone $@