[Libreoffice-commits] online.git: loolwsd/debian
Mihai Varga
mihai.varga at collabora.com
Tue Sep 8 06:34:42 PDT 2015
loolwsd/debian/loolwsd.preinst | 10 ++++++++++
1 file changed, 10 insertions(+)
New commits:
commit aad12a8f2bc82615d82ed0c178da312bfdb859f4
Author: Mihai Varga <mihai.varga at collabora.com>
Date: Tue Sep 8 16:31:49 2015 +0300
loolwsd: stop loolwsd service before installing .deb
diff --git a/loolwsd/debian/loolwsd.preinst b/loolwsd/debian/loolwsd.preinst
new file mode 100755
index 0000000..78112a4
--- /dev/null
+++ b/loolwsd/debian/loolwsd.preinst
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+set -e
+
+# Stop any running loolwsd process
+if [ -d /run/systemd/system ]; then
+ deb-systemd-invoke stop loolwsd.service >/dev/null || true
+fi
+
+exit 0
More information about the Libreoffice-commits
mailing list