config is in junior-config 1.21.
This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | #!/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/junior-config/useusermenus" || true
db_go
db_get shared/junior-config/useusermenus
if [ $RET ] ; then
db_input "medium" "shared/junior-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/junior/junior.conf ] && . /etc/blends/junior/junior.conf
# Add at least one default role for each Blend
addRole junior junior
# 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 junior
BLENDUSERS=`getUsersInRole junior junior 0 ,`
db_set junior-config/group "$BLENDUSERS"
db_subst junior-config/group users "$USERS"
db_get junior-config/group
db_input high junior-config/group || true
db_go
db_stop
if [ -d /etc/blends/junior/ ] ; then
if [ ! -f /etc/blends/junior/junior.conf ] ; then
# Due to a bug in blends-common the real Blend config file was moved to junior.conf~. This is fixed here
if [ -f /etc/blends/junior/junior.conf~ ] ; then
cp -a /etc/blends/junior/junior.conf~ /etc/blends/junior/junior.conf
fi
fi
fi
exit 0
|