Bug 40901: (QA follow-up) Restore the RabbitMQ and memcached steps in koha-common.postinst
The monolithic koha-common.postinst ended by enabling the rabbitmq_stomp plugin, restarting RabbitMQ and restarting memcached (Bug 35242). None of that survived the split: koha-core.postinst never had it and the new koha-common.postinst was an empty stub. A fresh "apt install koha-common" therefore left the STOMP plugin disabled, and upgrades stopped flushing memcached, which is exactly the stale-cache class of bug 35242 fixed. koha-common is the package that depends on rabbitmq-server and memcached, so the steps belong in its postinst. The copy in koha-full.postinst is dropped now that koha-full depends on koha-common. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> Signed-off-by: Pedro Amorim <pedro.amorim@openfifth.co.uk>
This commit is contained in:
parent
9485938333
commit
67d9b903d6
|
|
@ -4,4 +4,19 @@ set -e
|
|||
|
||||
#DEBHELPER#
|
||||
|
||||
if [ "$1" = "configure" ]; then
|
||||
# koha-common is the package that pulls in RabbitMQ and memcached, so
|
||||
# it keeps the service-level steps the monolithic package used to run.
|
||||
|
||||
# Koha's background jobs reach RabbitMQ over STOMP: make sure the plugin
|
||||
# is enabled and the broker has picked it up.
|
||||
if command -v rabbitmq-plugins >/dev/null 2>&1; then
|
||||
rabbitmq-plugins enable rabbitmq_stomp
|
||||
service rabbitmq-server restart || true
|
||||
fi
|
||||
|
||||
# Bug 35242: Force memcache restart after koha install/upgrade
|
||||
service memcached restart || true
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
|
|
|||
|
|
@ -5,7 +5,4 @@ set -e
|
|||
a2enmod mpm_itk rewrite cgi rewrite headers proxy_http
|
||||
service apache2 restart
|
||||
|
||||
rabbitmq-plugins enable rabbitmq_stomp
|
||||
service rabbitmq-server restart
|
||||
|
||||
exit 0
|
||||
|
|
|
|||
Loading…
Reference in New Issue