debian/cubicweb-twisted.postinst
author Julien Cristau <julien.cristau@logilab.fr>
Thu, 13 Jun 2013 12:03:59 +0200
changeset 9005 63cf580accfc
parent 0 b97547f5f1fa
permissions -rw-r--r--
notification: properly handle cnx and lifetime of the hijacked session When we create a session for the notification rendering, we need to 1) give it a cnxset 2) commit and close it after we're done 3) restore the original session for subsequent notifications This changes the ordering of actual mail sending, since there are several different commits involved, but I don't see a way to fix that short of restoring hijack_user. Related to #2934523

#! /bin/sh -e

if [ -x "/etc/init.d/cubicweb-ctl" ]; then
    invoke-rc.d cubicweb-ctl restart || true
fi
 
 
#DEBHELPER#
 
exit 0