[Libreoffice-commits] online.git: Branch 'distro/collabora/collabora-online-2-1' - debian/loolwsd.postinst.in debian/loolwsd.postrm Makefile.am
Andras Timar
andras.timar at collabora.com
Wed Sep 20 12:58:05 UTC 2017
Makefile.am | 1 +
debian/loolwsd.postinst.in | 4 ++++
debian/loolwsd.postrm | 3 +++
3 files changed, 8 insertions(+)
New commits:
commit 2d293b2551a63ce0707e57842c1ccc8920489abd
Author: Andras Timar <andras.timar at collabora.com>
Date: Tue Sep 12 11:49:25 2017 +0200
deb trigger: update systemplate in an APT::Update::Post-Invoke-Success operation
Change-Id: I465ef9ece8f11a45a605b670fbfbbbd0f40ab3f9
Reviewed-on: https://gerrit.libreoffice.org/42192
Reviewed-by: Jan Holesovsky <kendy at collabora.com>
Tested-by: Jan Holesovsky <kendy at collabora.com>
diff --git a/Makefile.am b/Makefile.am
index d69f1448..c6186e37 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -207,6 +207,7 @@ EXTRA_DIST = discovery.xml \
debian/changelog \
debian/control \
debian/loolwsd.postinst \
+ debian/loolwsd.postrm \
etc/key.pem \
etc/cert.pem \
etc/ca-chain.cert.pem
diff --git a/debian/loolwsd.postinst.in b/debian/loolwsd.postinst.in
index 59e4f898..ce059921 100755
--- a/debian/loolwsd.postinst.in
+++ b/debian/loolwsd.postinst.in
@@ -25,6 +25,10 @@ case "$1" in
fc-cache @LO_PATH@/share/fonts/truetype
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'"; };
+EOF
;;
esac
diff --git a/debian/loolwsd.postrm b/debian/loolwsd.postrm
new file mode 100755
index 00000000..d4e1fd99
--- /dev/null
+++ b/debian/loolwsd.postrm
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+rm /etc/apt/apt.conf.d/25loolwsd
More information about the Libreoffice-commits
mailing list