[debian-edu-commits] debian-edu/italc.git (#113) - master (branch) updated: debian/1_2.0.0-3-15-gee3ac5e

Mike Gabriel sunweaver at alioth.debian.org
Mon Aug 12 01:33:00 UTC 2013


The branch, master has been updated
       via  ee3ac5e7d31b9a07b9654c2d9d18e2703379a489 (commit)
      from  778c3aa394cf16fbc1459f91d7f0d32a7e52037e (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit ee3ac5e7d31b9a07b9654c2d9d18e2703379a489
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Mon Aug 12 02:31:39 2013 +0200

    more italc-client.postinst fixes

-----------------------------------------------------------------------

Summary of changes:
 debian/italc-client.postinst |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

The diff of changes is:
diff --git a/debian/italc-client.postinst b/debian/italc-client.postinst
index f8e4117..614a547 100755
--- a/debian/italc-client.postinst
+++ b/debian/italc-client.postinst
@@ -66,6 +66,8 @@ case "$1" in
 					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
+						chmod -Rf a-w,o-rx "/etc/italc/keys/public/$role"
+						chmod -Rf a-w,o-rx "/etc/italc/keys/private/$role"
 						echo "done."
 					else
 						echo "iTALC public/private key for iTALC role »$role« already exists."
@@ -84,7 +86,7 @@ case "$1" in
 				fi
 
 				if [ "$italc_key_access_for_groups" = "true" ]; then
-					if ! test -f "/etc/italc/keys/private/$role/key"; then 
+					if test -f "/etc/italc/keys/private/$role/key"; then
 						if [ "x$group" != "x" ]; then
 							chown -Rf :$group "/etc/italc/keys/private/$role"
 						else
@@ -130,7 +132,7 @@ case "$1" in
 			fi
 
 			if [ "$italc_key_access_for_groups" = "true" ]; then
-				if ! test -f "/etc/italc/keys/public/$role/key"; then
+				if test -f "/etc/italc/keys/public/$role/key"; then
 					if [ "x$group" != "x" ]; then
 						chown -Rf :$group "/etc/italc/keys/public/*"
 					else


hooks/post-receive
-- 
italc.git (Debian package italc)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "italc.git" (Debian package italc).




More information about the debian-edu-commits mailing list