From 3ab9fb481cc01eefe003b1cb959543bb561c5ed0 Mon Sep 17 00:00:00 2001 From: Patrice Levesque Date: Tue, 12 Apr 2016 13:18:22 -0400 Subject: [PATCH] Port two recent debian packaging commits to debian-multiarch Add a post-install/upgrade note on DB schema upgrade. commit 9d7a21883a6b704151108e41b4fe3ece9068aa15 Make example scripts in documentation executable. commit 1f029c9c70d0bb8e36cfabebd5f0e6eea0b2362b --- packaging/debian-multiarch/sogo.postinst | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/packaging/debian-multiarch/sogo.postinst b/packaging/debian-multiarch/sogo.postinst index 0cbb5b80e..f3d921cee 100644 --- a/packaging/debian-multiarch/sogo.postinst +++ b/packaging/debian-multiarch/sogo.postinst @@ -21,11 +21,25 @@ case "$1" in # update timestamp on imgs,css,js to let apache know the files changed find /usr/lib/GNUstep/SOGo/WebServerResources -exec touch {} \; + # Make example scripts in /usr/share/doc/sogo/ executable + # (they do not really belong there, we are violating Debian + # packaging guidelines, but OTOH moving these files now would + # break lots of setups) + chmod a+x /usr/share/doc/sogo/*.sh + # Enforce owner+mode on configuration chmod 750 /etc/sogo chown root:sogo /etc/sogo chmod 640 /etc/sogo/sogo.conf chown root:sogo /etc/sogo/sogo.conf + cat << EOF +======= Important SOGo post-installation note ======= + +SOGo database schemas are _not_ automatically upgraded by +the packaging system. + +Please check the list of database schema upgrade scripts +inside /usr/share/doc/sogo/ and apply them if needed. # Apache 2.2 / 2.4 kungfu COMMON_STATE=$(dpkg-query -f '${Status}' -W 'apache2.2-common' 2>/dev/null | awk '{print $3}' || true)