[debian-edu-commits] debian-edu/ 19/32: debian/italc-client.postinst: Ensure that $DISPLAY is unset before evoking the imc -createkeypair command.
Mike Gabriel
sunweaver at debian.org
Mon Aug 18 15:09:46 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 d48c8c84176dcf6bcb93cf4b7cf3722211024956
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date: Fri Aug 15 13:32:02 2014 +0200
debian/italc-client.postinst: Ensure that $DISPLAY is unset before evoking the imc -createkeypair command.
---
debian/italc-client.postinst | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/debian/italc-client.postinst b/debian/italc-client.postinst
index e922ba3..1f73467 100755
--- a/debian/italc-client.postinst
+++ b/debian/italc-client.postinst
@@ -98,6 +98,11 @@ case "$1" in
fi
if [ "$italc_create_keypairs" = "true" ]; then
+ # the imc command tries to start its Qt GUI if $DISPLAY is set...
+ if [ ! -z ${DISPLAY+x} ]; then
+ remembered_DISPLAY=$DISPLAY
+ fi
+ unset DISPLAY
if ! test -f "/etc/italc/keys/public/$role/key" -a -f "/etc/italc/keys/private/$role/key"; then
echo -n "Creating iTALC public/private key pair for iTALC role »$role« ... "
imc -role $role -createkeypair >/dev/null 2>/dev/null
@@ -107,6 +112,9 @@ case "$1" in
else
echo "iTALC public/private key for iTALC role »$role« already exists."
fi
+ if [ ! -z "${remembered_DISPLAY+x}" ]; then
+ DISPLAY=$remembered_DISPLAY
+ fi
fi
if [ "$italc_create_groups_for_roles" = "true" ] && [ "x$group" != "x" ]; then
--
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