diff options
author | Andras Timar <andras.timar@collabora.com> | 2019-11-26 22:56:58 +0100 |
---|---|---|
committer | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2019-12-17 09:28:14 +0100 |
commit | 63200128f05fcb63db9332a8abb51944fd8e0357 (patch) | |
tree | debe66cbf0564950475843ca9604b2c87e7938e7 | |
parent | loleaflet: handling server errors when uploading a file to server fails (diff) | |
download | online-63200128f05fcb63db9332a8abb51944fd8e0357.tar.gz online-63200128f05fcb63db9332a8abb51944fd8e0357.zip |
deb: trigger systemplate update after apt operations (e.g. installation of a new font, etc.)
Change-Id: Ia356249598d2f451d135985511b0fce71335a28d
(cherry picked from commit da56f1fc73ffdd17e44347d38ee4a844fa72a147)
-rw-r--r-- | Makefile.am | 1 | ||||
-rwxr-xr-x | debian/loolwsd.postinst.in | 4 | ||||
-rwxr-xr-x | debian/loolwsd.postrm | 5 |
3 files changed, 10 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am index 1b9dd4d358..16ec4e1a9e 100644 --- a/Makefile.am +++ b/Makefile.am @@ -252,6 +252,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 942cbc6953..bbbfcfeda3 100755 --- a/debian/loolwsd.postinst.in +++ b/debian/loolwsd.postinst.in @@ -24,6 +24,10 @@ case "$1" in fc-cache @LO_PATH@/share/fonts/truetype 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 +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 ;; esac diff --git a/debian/loolwsd.postrm b/debian/loolwsd.postrm new file mode 100755 index 0000000000..784ad65bab --- /dev/null +++ b/debian/loolwsd.postrm @@ -0,0 +1,5 @@ +#!/bin/sh + +set -e + +rm -f /etc/apt/apt.conf.d/25loolwsd |