[debian-edu-commits] [Git][debian-edu/debian-edu-config][master] Improve debian/debian-edu-config.postinst fix to only run once on upgrades.

Holger Levsen gitlab at salsa.debian.org
Mon Dec 16 15:53:45 GMT 2019



Holger Levsen pushed to branch master at Debian Edu / debian-edu-config


Commits:
eb3d73d7 by Holger Levsen at 2019-12-16T15:53:30Z
Improve debian/debian-edu-config.postinst fix to only run once on upgrades.

Signed-off-by: Holger Levsen <holger at layer-acht.org>

- - - - -


2 changed files:

- debian/changelog
- debian/debian-edu-config.postinst


Changes:

=====================================
debian/changelog
=====================================
@@ -1,11 +1,16 @@
 debian-edu-config (2.11.10) UNRELEASED; urgency=medium
 
+  [ Wolfgang Schweer ]
   * share/debian-edu-config/tools/kerberos-kdc-init:
     - Set proper rights for users in kadm5.acl file. (Closes: #946797)
   * Adjust debian/debian-edu-config.postinst to fix kadm5.acl upon upgrades.
   * Use secure URI in Homepage field.
   * Use canonical URL in Vcs-Git.
 
+  [ Holger Levsen ]
+  * Improve debian/debian-edu-config.postinst fix to only run once on
+    upgrades.
+
  -- Wolfgang Schweer <wschweer at arcor.de>  Mon, 16 Dec 2019 00:27:09 +0100
 
 debian-edu-config (2.11.9) unstable; urgency=medium


=====================================
debian/debian-edu-config.postinst
=====================================
@@ -192,10 +192,12 @@ configure)
         cp /etc/cfengine3/debian-edu/promises.cf /var/lib/cfengine3/inputs
     fi
 
-    # Set proper rights for users.
-    if [ -f /etc/krb5kdc/kadm5.acl ] ; then
-        sed -i 's/\(\*@INTERN[[:space:]]*\)cil/\1CIl/' /etc/krb5kdc/kadm5.acl
-        service krb5-admin-server restart
+    # Set proper rights for users - see #946797
+    if dpkg --compare-versions "$2" le "2.11.9" ; then
+        if [ -f /etc/krb5kdc/kadm5.acl ] ; then
+            sed -i 's/\(\*@INTERN[[:space:]]*\)cil/\1CIl/' /etc/krb5kdc/kadm5.acl
+            service krb5-admin-server restart
+        fi
     fi
     ;;
 esac



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

-- 
View it on GitLab: https://salsa.debian.org/debian-edu/debian-edu-config/commit/eb3d73d73126382570f754d622dc0f4ac17bf9ad
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/20191216/93e41e6f/attachment-0001.html>


More information about the debian-edu-commits mailing list