[debian-edu-commits] debian-edu/ 01/01: Revert "d-e-c.postinst: Move upgrade related code from configure) to upgrade)."

Holger Levsen holger at layer-acht.org
Thu Aug 18 10:33:07 UTC 2016


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

holger pushed a commit to branch master
in repository debian-edu-config.

commit 2c5396d0c592d462bd91a41cca6c7f263583fd16
Author: Holger Levsen <holger at layer-acht.org>
Date:   Thu Aug 18 12:32:11 2016 +0200

    Revert "d-e-c.postinst: Move upgrade related code from configure) to upgrade)."
    
    This reverts commit 5314fa80fab9549fbf1bb5c4f02044ba915ae306.
---
 debian/debian-edu-config.postinst | 28 ++++++++++++----------------
 1 file changed, 12 insertions(+), 16 deletions(-)

diff --git a/debian/debian-edu-config.postinst b/debian/debian-edu-config.postinst
index eaf0ff6..a4ab444 100644
--- a/debian/debian-edu-config.postinst
+++ b/debian/debian-edu-config.postinst
@@ -162,22 +162,6 @@ fi
 
 case "$1" in
 configure)
-
-    # sssd refuses to read the file if it has any other mode
-    chmod 600 /etc/sssd/sssd-debian-edu.conf
-    chown root:root /etc/sssd/sssd-debian-edu.conf
-
-    # silence dovecot's message: if you have trouble with authentication failures,
-    # enable auth_debug setting. See http://wiki.dovecot.org/WhyDoesItNotWork
-    # This message goes away after the first successful login.
-    mkdir -p /var/lib/dovecot
-    chmod 750 /var/lib/dovecot
-    chown root:root /var/lib/dovecot
-    touch /var/lib/dovecot/auth_success
-    ;;
-
-upgrade)
-
     if dpkg --compare-versions "$2" le "1.811"; then
 	rm_conffile debian-edu-config /etc/cfengine/debian-edu/cf.pdns
 	rm_conffile debian-edu-config /etc/insserv.conf.d/debian-edu-config
@@ -224,6 +208,18 @@ upgrade)
 	fi
     fi
 
+    # sssd refuses to read the file if it has any other mode
+    chmod 600 /etc/sssd/sssd-debian-edu.conf
+    chown root:root /etc/sssd/sssd-debian-edu.conf
+
+    # silence dovecot's message: if you have trouble with authentication failures,
+    # enable auth_debug setting. See http://wiki.dovecot.org/WhyDoesItNotWork
+    # This message goes away after the first successful login.
+    mkdir -p /var/lib/dovecot
+    chmod 750 /var/lib/dovecot
+    chown root:root /var/lib/dovecot
+    touch /var/lib/dovecot/auth_success
+
     ;;
 esac
 

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



More information about the debian-edu-commits mailing list