#!/bin/sh -e # Initialize debconf if not yet done if [ _"$DEBCONF_REDIR" = _"" ]; then . /usr/share/debconf/confmodule db_version 2.0 db_capb backup fi db_input "medium" "shared/pan-config/useusermenus" || true db_go db_get shared/pan-config/useusermenus if [ $RET ] ; then db_input "medium" "shared/pan-config/usermenus" || true db_go fi # if blends.config package is not yet installed we have to stop here if [ ! -f /etc/blends/blends.conf ] ; then db_stop exit 0 fi [ -s /etc/blends/blends.conf ] && . /etc/blends/blends.conf [ -s /etc/blends/pan/pan.conf ] && . /etc/blends/pan/pan.conf # Add at least one default role for each Blend addRole pan pan # Login names of all users of the system as comma separated list USERS=`getAllUsers 0 ,` # "login (Real Name)" of users registered to the Debian Pure Blend pan BLENDUSERS=`getUsersInRole pan pan 0 ,` db_set pan-config/group "$BLENDUSERS" db_subst pan-config/group users "$USERS" db_get pan-config/group db_input high pan-config/group || true db_go db_stop if [ -d /etc/blends/pan/ ] ; then if [ ! -f /etc/blends/pan/pan.conf ] ; then # Due to a bug in blends-common the real Blend config file was moved to pan.conf~. This is fixed here if [ -f /etc/blends/pan/pan.conf~ ] ; then cp -a /etc/blends/pan/pan.conf~ /etc/blends/pan/pan.conf fi fi fi exit 0