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

Wolfgang Schweer schweer-guest at moszumanska.debian.org
Wed Aug 17 13:05:44 UTC 2016


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

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

commit 5314fa80fab9549fbf1bb5c4f02044ba915ae306
Author: Wolfgang Schweer <wschweer at arcor.de>
Date:   Wed Aug 17 14:51:11 2016 +0200

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

diff --git a/debian/debian-edu-config.postinst b/debian/debian-edu-config.postinst
index a4ab444..eaf0ff6 100644
--- a/debian/debian-edu-config.postinst
+++ b/debian/debian-edu-config.postinst
@@ -162,6 +162,22 @@ 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
@@ -208,18 +224,6 @@ configure)
 	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