f8ae6243dd
Change-Id: Ibe91699f8d126dd34c1041fcfaaf471974387e47 Reviewed-on: https://gerrit.libreoffice.org/37102 Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Michael Meeks <michael.meeks@collabora.com>
32 lines
819 B
Bash
Executable file
32 lines
819 B
Bash
Executable file
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
case "$1" in
|
|
configure)
|
|
setcap cap_fowner,cap_mknod,cap_sys_chroot=ep /usr/bin/loolforkit || true
|
|
setcap cap_sys_admin=ep /usr/bin/loolmount || true
|
|
|
|
adduser --quiet --system --group --home /opt/lool lool
|
|
mkdir -p /var/cache/loolwsd && chown lool: /var/cache/loolwsd
|
|
rm -rf /var/cache/loolwsd/*
|
|
chown lool: /etc/loolwsd/loolwsd.xml
|
|
chmod 640 /etc/loowsd/loolwsd.xml
|
|
|
|
# We assume that the LibreOffice to be used is built TDF-style
|
|
# and installs in @LO_PATH@, and that /opt/lool is
|
|
# on the same file system
|
|
|
|
rm -rf /opt/lool
|
|
mkdir -p /opt/lool/child-roots
|
|
chown lool: /opt/lool
|
|
chown lool: /opt/lool/child-roots
|
|
|
|
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"
|
|
;;
|
|
|
|
esac
|
|
|
|
#DEBHELPER#
|