[debian-edu-commits] [Git][debian-edu/debian-edu-config][master] share/d-e-c/tools/copy-host-keytab: Restart nfs-common/rpc-gssd after having...

Mike Gabriel (@sunweaver) gitlab at salsa.debian.org
Wed Dec 22 21:28:25 GMT 2021



Mike Gabriel pushed to branch master at Debian Edu / debian-edu-config


Commits:
dada2786 by Mike Gabriel at 2021-12-22T22:27:55+01:00
share/d-e-c/tools/copy-host-keytab: Restart nfs-common/rpc-gssd after having copied over /etc/krb5.keytab. This avoids rebooting for applying the copied over changes.

- - - - -


2 changed files:

- debian/changelog
- share/debian-edu-config/tools/copy-host-keytab


Changes:

=====================================
debian/changelog
=====================================
@@ -3,6 +3,9 @@ debian-edu-config (2.12.15) UNRELEASED; urgency=medium
   * share/d-e-c/tools/gosa-modify-host: Only create Kerberos host and service
     principals if they don't yet exist. (Closes: #1002014).
   * share/d-e-c/tools/gosa-create-host: Fix copy+paste flaw in comment.
+  * share/d-e-c/tools/copy-host-keytab: Restart nfs-common/rpc-gssd after
+    having copied over /etc/krb5.keytab. This avoids rebooting for applying
+    the copied over changes.
 
  -- Mike Gabriel <sunweaver at debian.org>  Mon, 20 Dec 2021 22:35:39 +0100
 


=====================================
share/debian-edu-config/tools/copy-host-keytab
=====================================
@@ -7,3 +7,9 @@ scp tjener:/etc/debian-edu/host-keytabs/$(hostname -s).intern.keytab /etc/krb5.k
 if [ -f /srv/ltsp/dlw/etc/ltsp/ltsp.conf ] ; then
 	cp /etc/krb5.keytab /srv/ltsp/dlw/etc/krb5.keytab
 fi
+
+if service status nfs-common 1>/dev/null 2>/dev/null; then
+	service nfs-common restart
+elif service status rpc-gssd 1>/dev/null 2>/dev/null; then
+	service rpc-gssd restart
+fi



View it on GitLab: https://salsa.debian.org/debian-edu/debian-edu-config/-/commit/dada2786b4c9414b0dd74ce441b8c72c7c9c1fa0

-- 
View it on GitLab: https://salsa.debian.org/debian-edu/debian-edu-config/-/commit/dada2786b4c9414b0dd74ce441b8c72c7c9c1fa0
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-edu-commits/attachments/20211222/92343aaf/attachment.htm>


More information about the debian-edu-commits mailing list