diff --git a/README.md b/README.md index c86a11e394d6fd87fe3e8e1ee2b3896828bf0d9f..b3cf4b24372510608eece2ba0b478f116f63a49a 100644 --- a/README.md +++ b/README.md @@ -3,4 +3,4 @@ OnlyOffice Scripts for installing an instance of OnlyOffice. -- onlyoffice-debian.sh installs on Debian. You must provide the passwords for Mysql and Postgres. \ No newline at end of file +- onlyoffice-debian.sh installs on Debian. You must provide the passwords for Mysql and Postgres, the FQDN of the host and an email address. \ No newline at end of file diff --git a/install-fonts.sh b/install-fonts.sh new file mode 100644 index 0000000000000000000000000000000000000000..e5bb9cc0201cf1d421ca2c0124b124f384bb4037 --- /dev/null +++ b/install-fonts.sh @@ -0,0 +1,51 @@ +#!/bin/bash + +# Install default Office fonts +# see: https://helpcenter.onlyoffice.com/de/server/linux/document/install-fonts.aspx + +# If DocumnentServer is running within a container +# find the container with: +# sudo docker ps -a +# and enter that container +# docker exec -it <documentserver> /bin/bash +# e.g. +# docker exec -it onlyoffice-document-server /bin/bash + + +cd /tmp +sudo mkdir -p /usr/share/fonts/truetype +sudo apt -y install unzip +sudo apt -y install fontconfig # for fc-cache + +function get_font { + wget "http://legionfonts.com/download/$1" + unzip "$1" + sudo mv "$2.ttf" /usr/share/fonts/truetype + rm "$1" +} + +# Download and install fonts +get_font arial Arial +get_font calibri Calibri +get_font courier-new 'Courier New' +get_font symbol Symbol +get_font times-new-roman 'Times New Roman' +get_font tw-cen-mt 'Tw Cen MT' +get_font tw-cen-mt-condensed 'Tw Cen MT Condensed' + +# Optionally remove extra fonts +sudo apt -y remove fonts-taml fonts-telu fonts-mlym +sudo apt -y remove fonts-lohit-telu fonts-lohit-taml fonts-lohit-taml fonts-lohit-orya fonts-lohit-mlym fonts-lohit-knda fonts-lohit-guru +sudo apt -y remove fonts-deva fonts-gujr fonts-guru fonts-knda fonts-lohit-beng-assamese fonts-lohit-beng-bengali fonts-lohit-deva fonts-lohit-gujr +sudo apt -y remove fonts-kacst fonts-kacst-one fonts-pagul +sudo apt -y remove fonts-thai-tlwg-web fonts-tlwg-garuda fonts-tlwg-garuda-otf fonts-tlwg-garuda-ttf +sudo apt -y remove fonts-noto-mono fonts-noto-cjk +sudo apt -y remove fonts-khmeros-core fonts-khmeros +sudo apt -y remove fonts-lklug-sinhala fonts-tibetan-machine fonts-sil-padauk + +# Refresh the cache +sudo fc-cache -fv + +# OnlyOffice-provided script +/usr/bin/documentserver-generate-allfonts.sh + diff --git a/onlyoffice-docker-upgrade.rst b/onlyoffice-docker-upgrade.rst new file mode 100644 index 0000000000000000000000000000000000000000..5a5f034c687f0a0a03cad3e6d661352d59952621 --- /dev/null +++ b/onlyoffice-docker-upgrade.rst @@ -0,0 +1,41 @@ +Upgrading a Docker-based installation of OnlyOffice +=================================================== + +First of all, backup/snapshot OnlyOffice data through a snapshot or as described at https://helpcenter.onlyoffice.com/it/server/docker/community/upgrade-docker.aspx#Step1 + +Upgrade OnlyOffice installed with docker containers:: + + cd /tmp/ + wget http://download.onlyoffice.com/install/install.sh + chmod +x install.sh + sudo ./install.sh -u true -os true + +Example output:: + + 5.2.2.2: Pulling from onlyoffice/documentserver + 3b37166ec614: Already exists + 504facff238f: Already exists + ebbcacd28e10: Already exists + c7fb3351ecad: Already exists + 2e3debadcbf7: Already exists + 044400dde582: Pull complete + 90d8e1fc9abb: Pull complete + bc60a37a132e: Pull complete + 8b536ff60bda: Pull complete + Digest: sha256:c83f785f747785faa24cc755cdf070caf49dd7b763b1482046b77077ad46070e + Status: Downloaded newer image for onlyoffice/documentserver:5.2.2.2 + Preparing for shutdown, it can take a lot of time, please wait...Done + stop container: + onlyoffice-document-server + remove container: + onlyoffice-document-server + check removed container: onlyoffice-document-server + 10f08d8c09b4f0cc6c37183edd93ac5484609b3e1646ed1380254570e5fd5950 + The latest version of ONLYOFFICE MAIL SERVER is already installed. + 59004b9bc91bddc566e4256c5ba6d4f280d749bbf2b629f6506b9f90bb2af8ae + The latest version of ONLYOFFICE COMMUNITY SERVER is already installed. + ad10b35885138a019d0b8e2a865798e7c6824c7ba42e50960b54e40b9712a32f + + Thank you for installing ONLYOFFICE. + In case you have any questions contact us via http://support.onlyoffice.com or visit our forum at http://dev.onlyoffice.org +