From 2defa58b0780d112bd4b81c86ea6ef23407ac8a2 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 10 Apr 2019 12:10:06 +0200 Subject: Libreoffice install script, service and settings --- install/ishtar-install | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'install/ishtar-install') diff --git a/install/ishtar-install b/install/ishtar-install index 9a84114ba..77d049b7a 100755 --- a/install/ishtar-install +++ b/install/ishtar-install @@ -477,6 +477,10 @@ EOF if [ "$install_libreoffice" == 'yes' ]; then ( set -x; $sh_c 'sleep 3; apt-get --no-install-recommends install -y -q \ libreoffice libreoffice-script-provider-python python3-uno' ) + cp "install/libreoffice.service" "/etc/systemd/system/libreoffice.service" + systemctl daemon-reload + systemctl enable libreoffice + systemctl start libreoffice fi if [ "$install_celery" == 'yes' ]; then @@ -546,6 +550,9 @@ EOF if [ "$install_celery" == 'yes' ]; then echo "USE_CELERY="$install_celery >> $etc_path"config" fi + if [ "$install_libreoffice" == 'yes' ]; then + echo "USE_LIBREOFFICE=yes" >> $etc_path"config" + fi echo "# settings added to all instances" >> $etc_path"extra_settings.py" echo "" cecho g "*******************************************************************************" -- cgit v1.2.3