[debian-edu-commits] debian-edu/upstream/ 21/71: First draft to support a hook after the home directory is created.

Petter Reinholdtsen pere at moszumanska.debian.org
Mon Jun 9 18:25:36 UTC 2014


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

pere pushed a commit to branch master
in repository libpam-mklocaluser.

commit c424d994b2582795560d7dad5613e01daa123c36
Author: Petter Reinholdtsen <pere at hungry.com>
Date:   Sun May 2 19:46:06 2010 +0000

    First draft to support a hook after the home directory is created.
---
 debian/pam-python.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/debian/pam-python.py b/debian/pam-python.py
index 65b517a..d7d2c6e 100755
--- a/debian/pam-python.py
+++ b/debian/pam-python.py
@@ -73,6 +73,10 @@ def check_and_create_localuser(pamh, user):
       # Flush nscd cache to get rid of original user entry
       runcmd(pamh, "/usr/sbin/nscd -i passwd")
 
+      # Hook for adjusting the freshly created home directory
+      # XXX Should it be rewritten in python?
+      #runcmd(pamh, "if [ -d /etc/localoffline.d ]; then /bin/run-parts /etc/localoffline.d ; fi")
+
       # Let the user know what is going on
       msg = pamh.Message(pamh.PAM_TEXT_INFO,
                          "Local user created in /home/, please log in again to start using it.")

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



More information about the debian-edu-commits mailing list