[debian-edu-commits] [Git][debian-edu/debian-edu-config][master] debian/debian-edu-config.preinst: Make .keytab file moval more...

Mike Gabriel (@sunweaver) gitlab at salsa.debian.org
Tue Mar 22 09:44:41 GMT 2022



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


Commits:
0dad2d2b by Mike Gabriel at 2022-03-22T10:44:31+01:00
debian/debian-edu-config.preinst: Make .keytab file moval more robust/idempotent. Don't attempt moving .keytab files if /etc/debian-edu/host-keytabs is already a symlink.

- - - - -


2 changed files:

- debian/changelog
- debian/debian-edu-config.preinst


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,11 @@
+debian-edu-config (2.12.20) UNRELEASED; urgency=medium
+
+  * debian/debian-edu-config.preinst:
+    + Make .keytab file moval more robust/idempotent. Don't attempt moving
+      .keytab files if /etc/debian-edu/host-keytabs is already a symlink.
+
+ -- Mike Gabriel <sunweaver at debian.org>  Tue, 22 Mar 2022 10:44:16 +0100
+
 debian-edu-config (2.12.19) unstable; urgency=medium
 
   * Regression fix upload.


=====================================
debian/debian-edu-config.preinst
=====================================
@@ -51,7 +51,9 @@ upgrade)
     # We have to move the .keytab files manually, because they are not owned
     # by debian-edu-config.
     if dpkg --compare-versions "$2" le "2.12.17"; then
-        if [ -d /etc/debian-edu/host-keytabs ] && find /etc/debian-edu/host-keytabs/* 1>/dev/null 2>/dev/null; then
+        if [ -d /etc/debian-edu/host-keytabs ] && \
+           [ ! -h /etc/debian-edu/host-keytabs ] && \
+           find /etc/debian-edu/host-keytabs/* 1>/dev/null 2>/dev/null; then
             mkdir -p /var/lib/debian-edu/host-keytabs/
             mv /etc/debian-edu/host-keytabs/*.keytab /var/lib/debian-edu/host-keytabs/
         fi



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

-- 
View it on GitLab: https://salsa.debian.org/debian-edu/debian-edu-config/-/commit/0dad2d2b22b2b9790b38904b764304dfd7dfdeaa
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/20220322/af17b4ea/attachment-0001.htm>


More information about the debian-edu-commits mailing list