[debian-edu-commits] debian-edu/ 01/01: educlient.postinst: Really make sure that /etc/autofs_ldap_auth.conf has correct file permissions.

Mike Gabriel sunweaver at debian.org
Fri Nov 13 15:15:58 UTC 2015


This is an automated email from the git hooks/post-receive script.

sunweaver pushed a commit to branch master
in repository educlient.

commit 4e85dcfb21f88bb4f1aa514ea359f8a4fed3e21b
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Fri Nov 13 16:15:45 2015 +0100

    educlient.postinst: Really make sure that /etc/autofs_ldap_auth.conf has correct file permissions.
---
 debian/educlient.postinst | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/debian/educlient.postinst b/debian/educlient.postinst
index 139c471..e1733e4 100755
--- a/debian/educlient.postinst
+++ b/debian/educlient.postinst
@@ -132,6 +132,10 @@ if [ -h /etc/autofs_ldap_auth.conf ]; then
 	rm -f /etc/autofs_ldap_auth.conf
 	cp -a "$link_target" "/etc/autofs_ldap_auth.conf"
 	cd - 1>/dev/null
+elif [ -f /etc/autofs_ldap_auth.conf ]; then
+	# some fallback, in case we did something wrong on the way...
+	chmod 0600 /etc/autofs_ldap_auth.conf
+	chown root:root /etc/autofs_ldap_auth.conf
 fi
 
 # Create /skole mount point

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/upstream/educlient.git



More information about the debian-edu-commits mailing list