From 2e1d9381c2dbfd675611b9cdb09036e9a77c88c3 Mon Sep 17 00:00:00 2001 From: Roman Demidov Date: Mon, 11 Jul 2022 16:30:33 +0300 Subject: [PATCH 1/2] Fix #57829 : Implement the ability to add fonts without reinstall (#108) --- bin/documentserver-start.sh | 9 +++++++++ snap/snapcraft.yaml | 4 ++++ 2 files changed, 13 insertions(+) diff --git a/bin/documentserver-start.sh b/bin/documentserver-start.sh index c1395ba..d039830 100755 --- a/bin/documentserver-start.sh +++ b/bin/documentserver-start.sh @@ -53,4 +53,13 @@ fi export LC_ALL=C.UTF-8 +#check fonts +FONTS_HASH_FILE=$SNAP_DATA/fonts-hash.md5 +FONTS_HASH_NEW=$(find /usr/share/fonts | md5sum | cut -f 1 -d ' ') +FONTS_HASH_OLD=$(cat $FONTS_HASH_FILE) +if [ "${FONTS_HASH_NEW}" != "${FONTS_HASH_OLD}" ]; then + echo "${FONTS_HASH_NEW}" > $FONTS_HASH_FILE + $SNAP/usr/sbin/generate-all-fonts.sh +fi + $SNAP/usr/bin/python $SNAP/usr/bin/supervisord -n -c $SNAP_DATA/etc/supervisor/supervisord.conf diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 8875394..6283d87 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -54,6 +54,10 @@ apps: command: mysqldump --defaults-file=$SNAP_DATA/mysql/root.ini --lock-tables onlyoffice plugs: [network, network-bind] + generate-all-fonts: + command: usr/sbin/generate-all-fonts.sh + plugs: [desktop, unity7] + hooks: configure: plugs: [network, network-bind, account-control, gpg-keys, accounts-service, system-observe] #system-files, From 404e58bdc890930f40e2508b0fbd20a1196e36df Mon Sep 17 00:00:00 2001 From: Roman Demidov Date: Thu, 22 Sep 2022 16:35:45 +0300 Subject: [PATCH 2/2] Update version to 7.2.0 --- snap/snapcraft.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 6283d87..104c1d4 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -1,5 +1,5 @@ name: onlyoffice-ds -version: "7.1.1" +version: "7.2.0" summary: "An online office suite that allowing to create, view and edit documents." description: "ONLYOFFICE Document Server is an online office suite comprising viewers and editors for texts, spreadsheets and presentations, fully compatible with Office Open XML formats: .docx, .xlsx, .pptx and enabling collaborative editing in real time." icon: snap/icons/asc-de-256.png @@ -84,8 +84,8 @@ parts: server: plugin: dump source: - - on amd64: https://download.onlyoffice.com/install/documentserver/linux/onlyoffice-documentserver-7.1.1_x86_64.tar.gz - - on arm64: https://download.onlyoffice.com/install/documentserver/linux/onlyoffice-documentserver-7.1.1_aarch64.tar.gz + - on amd64: https://download.onlyoffice.com/install/documentserver/linux/onlyoffice-documentserver-7.2.0_x86_64.tar.gz + - on arm64: https://download.onlyoffice.com/install/documentserver/linux/onlyoffice-documentserver-7.2.0_aarch64.tar.gz stage-packages: - libxml2 - fonts-dejavu