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)