[debian-edu-commits] debian-edu/ 22/32: DebConf: Default to root group only if previously set iTALC role groups were not set or do not exist (anymore).
Mike Gabriel
sunweaver at debian.org
Mon Aug 18 15:09:47 UTC 2014
This is an automated email from the git hooks/post-receive script.
sunweaver pushed a commit to annotated tag debian/1_2.0.2+dfsg1-1
in repository italc.
commit 5a9adaf8190bb8c2a2ba9656acbe393e97586a85
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date: Fri Aug 15 15:32:24 2014 +0200
DebConf: Default to root group only if previously set iTALC role groups were not set or do not exist (anymore).
---
debian/italc-client.config | 20 ++++++++++++++++----
1 file changed, 16 insertions(+), 4 deletions(-)
diff --git a/debian/italc-client.config b/debian/italc-client.config
index 6d4f562..08f8389 100755
--- a/debian/italc-client.config
+++ b/debian/italc-client.config
@@ -25,10 +25,22 @@ if [ "$create_keypairs" = "true" ]; then
if [ "$create_groups" = "false" ]; then
db_set italc-client/use-existing-groups-for-roles true
- db_set italc-client/group-italc-teacher "root"
- db_set italc-client/group-italc-student "root"
- db_set italc-client/group-italc-supporter "root"
- db_set italc-client/group-italc-admin "root"
+ 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
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/pkg-team/italc.git
More information about the debian-edu-commits
mailing list