[Libreoffice-commits] online.git: Branch 'distro/collabora/collabora-online-2-1' - debian/loolwsd.postinst.in

Andras Timar andras.timar at collabora.com
Mon Oct 2 12:57:32 UTC 2017


 debian/loolwsd.postinst.in |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 251e11c3b5d16a763a80afc7266ca1113f2053ea
Author: Andras Timar <andras.timar at collabora.com>
Date:   Fri Sep 22 17:07:57 2017 +0200

    deb trigger: rework
    
    APT::Update::Post-Invoke-Success is invoked after successful updates
    (i.e. package information updates, not upgrades) -- it's not what we want.
    Use DPkg::Post-Invoke, which is invoked after every execution of dpkg (by
    an apt tool, not manually). Moreover, echo a short update message.
    
    Change-Id: I36b9f5e0e849b7c710628a8549d9d8e241f34da4
    Reviewed-on: https://gerrit.libreoffice.org/42664
    Reviewed-by: Jan Holesovsky <kendy at collabora.com>
    Tested-by: Jan Holesovsky <kendy at collabora.com>

diff --git a/debian/loolwsd.postinst.in b/debian/loolwsd.postinst.in
index ce059921..d15baafe 100755
--- a/debian/loolwsd.postinst.in
+++ b/debian/loolwsd.postinst.in
@@ -27,7 +27,7 @@ case "$1" in
 	su lool --shell=/bin/sh -c "loolwsd-systemplate-setup /opt/lool/systemplate @LO_PATH@ >/dev/null 2>&1"
     cat << EOF > /etc/apt/apt.conf.d/25loolwsd
 // Rebuild systemplate of LibreOffice Online
-APT::Update::Post-Invoke-Success { "su lool --shell=/bin/sh -c 'loolwsd-systemplate-setup /opt/lool/systemplate @LO_PATH@ >/dev/null 2>&1'"; };
+DPkg::Post-Invoke { "echo Updating loolwsd systemplate;su lool --shell=/bin/sh -c 'loolwsd-systemplate-setup /opt/lool/systemplate @LO_PATH@ >/dev/null 2>&1'"; };
 EOF
 	;;
 


More information about the Libreoffice-commits mailing list