config is in italc-client 1:2.0.2+dfsg1-4.
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 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 | #!/bin/sh
set -e
# Source debconf library.
. /usr/share/debconf/confmodule
db_input high italc-client/create-keypairs || true
db_go
db_get italc-client/create-keypairs
create_keypairs=$RET
# remember the formerly used (or default) group names, if any
db_get italc-client/group-italc-teacher && db_set italc-client/last-group-teacher $RET || true
db_get italc-client/group-italc-student && db_set italc-client/last-group-student $RET || true
db_get italc-client/group-italc-supporter && db_set italc-client/last-group-supporter $RET || true
db_get italc-client/group-italc-admin && db_set italc-client/last-group-admin $RET || true
# set the confirmation questions for group deletions always to false before we begin...
db_set italc-client/del-last-group-teacher false
db_set italc-client/del-last-group-student false
db_set italc-client/del-last-group-supporter false
db_set italc-client/del-last-group-admin false
if [ "$create_keypairs" = "true" ]; then
db_input high italc-client/create-groups-for-roles || true
db_go
db_get italc-client/create-groups-for-roles
create_groups=$RET
# always allow usage of existing groups (also when $create_groups is set)
db_set italc-client/use-existing-groups-for-roles true
if [ "$create_groups" = "false" ]; then
db_get italc-client/group-italc-teacher
if [ -z "$RET" ] || ! getent group $RET 1>/dev/null; then
db_set italc-client/group-italc-teacher "root"
fi
db_get italc-client/group-italc-student
if [ -z "$RET" ] || ! getent group $RET 1>/dev/null; then
db_set italc-client/group-italc-student "root"
fi
db_get italc-client/group-italc-supporter
if [ -z "$RET" ] || ! getent group $RET 1>/dev/null; then
db_set italc-client/group-italc-supporter "root"
fi
db_get italc-client/group-italc-admin
if [ -z "$RET" ] || ! getent group $RET 1>/dev/null; then
db_set italc-client/group-italc-admin "root"
fi
db_input high italc-client/use-existing-groups-for-roles || true
db_go
fi
db_get italc-client/use-existing-groups-for-roles
use_existing_groups=$RET
if [ "$create_groups" = "true" ] || [ "$use_existing_groups" = "true" ]; then
loop=1
while [ $loop -eq 1 ]; do
db_input high italc-client/group-italc-teacher || true
db_go
db_get italc-client/group-italc-teacher
italc_group_teacher=$RET
if getent group $italc_group_teacher 1>/dev/null; then
loop=0
else
if [ "$create_groups" = "true" ]; then
loop=0
else
db_input critical italc-client/no-such-group || true
db_go
continue
fi
fi
db_get italc-client/last-group-teacher
if [ -z "$RET" ] || ! getent group $RET 1>/dev/null; then
RET="root"
fi
if [ "$RET" != "$italc_group_teacher" ] && [ $(getent group $RET | cut -d ":" -f 3) -ge 100 ]; then
db_input critical italc-client/del-last-group-teacher || true
db_go
fi
done
loop=1
while [ $loop -eq 1 ]; do
db_input high italc-client/group-italc-student || true
db_go
db_get italc-client/group-italc-student
italc_group_student=$RET
if getent group $italc_group_student 1>/dev/null; then
loop=0
else
if [ "$create_groups" = "true" ]; then
loop=0
else
db_input critical italc-client/no-such-group || true
db_go
continue
fi
fi
db_get italc-client/last-group-student
if [ -z "$RET" ] || ! getent group $RET 1>/dev/null; then
RET="root"
fi
if [ "$RET" != "$italc_group_student" ] && [ $(getent group $RET | cut -d ":" -f 3) -ge 100 ]; then
db_input critical italc-client/del-last-group-student || true
db_go
fi
done
loop=1
while [ $loop -eq 1 ]; do
db_input high italc-client/group-italc-supporter || true
db_go
db_get italc-client/group-italc-supporter
italc_group_supporter=$RET
if getent group $italc_group_supporter 1>/dev/null; then
loop=0
else
if [ "$create_groups" = "true" ]; then
loop=0
else
db_input critical italc-client/no-such-group || true
db_go
continue
fi
fi
db_get italc-client/last-group-supporter
if [ -z "$RET" ] || ! getent group $RET 1>/dev/null; then
RET="root"
fi
if [ "$RET" != "$italc_group_supporter" ] && [ $(getent group $RET | cut -d ":" -f 3) -ge 100 ]; then
db_input critical italc-client/del-last-group-supporter || true
db_go
fi
done
loop=1
while [ $loop -eq 1 ]; do
db_input high italc-client/group-italc-admin || true
db_go
db_get italc-client/group-italc-admin
italc_group_admin=$RET
if getent group $italc_group_admin 1>/dev/null; then
loop=0
else
if [ "$create_groups" = "true" ]; then
loop=0
else
db_input critical italc-client/no-such-group || true
db_go
continue
fi
fi
db_get italc-client/last-group-admin
if [ -z "$RET" ] || ! getent group $RET 1>/dev/null; then
RET="root"
fi
if [ "$RET" != "$italc_group_admin" ] && [ $(getent group $RET | cut -d ":" -f 3) -ge 100 ]; then
db_input critical italc-client/del-last-group-admin || true
db_go
fi
done
db_input high italc-client/key-access-for-groups || true
db_go
fi
fi
db_input high italc-client/autostart-on-login || true
db_go
|