Skip to content

Commit

Permalink
Release/v7.2.0 (#109)
Browse files Browse the repository at this point in the history
* Fix #57829 : Implement the ability to add fonts without reinstall (#108)

* Update version to 7.2.0
  • Loading branch information
romandemidov authored Sep 22, 2022
1 parent 603baa1 commit d09fd8f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
9 changes: 9 additions & 0 deletions bin/documentserver-start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
10 changes: 7 additions & 3 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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,
Expand All @@ -80,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
Expand Down

0 comments on commit d09fd8f

Please sign in to comment.