[debian-edu-commits] debian-edu/ 02/10: italc-client.postinst: Make sure that the key directories exist before using imc for key creation.
Mike Gabriel
sunweaver at debian.org
Sat Dec 10 01:43:49 UTC 2016
This is an automated email from the git hooks/post-receive script.
sunweaver pushed a commit to branch master
in repository italc.
commit ee42ea7972b568a221c597c255e0e1e231020993
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date: Tue Dec 6 17:09:51 2016 +0000
italc-client.postinst: Make sure that the key directories exist before using imc for key creation.
---
debian/italc-client.postinst | 2 ++
1 file changed, 2 insertions(+)
diff --git a/debian/italc-client.postinst b/debian/italc-client.postinst
index 2a42b6f..291b659 100755
--- a/debian/italc-client.postinst
+++ b/debian/italc-client.postinst
@@ -111,6 +111,8 @@ case "$1" in
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« ... "
+ mkdir -p "/etc/italc/keys/public/$role/"
+ mkdir -p "/etc/italc/keys/private/$role/"
imc -role $role -createkeypair >/dev/null 2>/dev/null
chmod -Rf a-w,o-rx "/etc/italc/keys/public/$role"
chmod -Rf a-w,o-rx "/etc/italc/keys/private/$role"
--
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