#!/bin/bash -ex
echo """#!/bin/bash -e
/usr/bin/chgrp nginx /etc/roundcubemail/*
""" > "$IMAGE_NAME_RISOTTO_IMAGE_DIR_TMP/install.sh"
chmod +x "$IMAGE_NAME_RISOTTO_IMAGE_DIR_TMP/install.sh"
chroot "$IMAGE_NAME_RISOTTO_IMAGE_DIR_TMP" /install.sh
rm -f "$IMAGE_NAME_RISOTTO_IMAGE_DIR_TMP/install.sh"