set -e

mkdir -p "$IMAGE_NAME_RISOTTO_IMAGE_DIR_TMP/usr/local/share"
cp -a $IMAGE_DIR_RECIPIENT_IMAGE/postinstall/sensmotdire "$IMAGE_NAME_RISOTTO_IMAGE_DIR_TMP/usr/local/share"
chown -R root: "$IMAGE_NAME_RISOTTO_IMAGE_DIR_TMP/usr/local/share/sensmotdire"
ln -s /etc/sensmotdire/config.php "$IMAGE_NAME_RISOTTO_IMAGE_DIR_TMP/usr/local/share/sensmotdire/config.php"

cd $ORIPWD
