Skip to content

Commit

Permalink
Bug fix 65140 : Changes in the editor are lost when updating (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
romandemidov authored May 27, 2024
1 parent 02bcfb8 commit a0842a2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions snap/hooks/pre-refresh
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@

echo "$SNAP_VERSION" > $SNAP_DATA/version
echo "$SNAP_REVISION" > $SNAP_DATA/revision

$SNAP/usr/sbin/documentserver-prepare4shutdown.sh

7 changes: 7 additions & 0 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ hooks:
install:
plugs: [network, network-bind, removable-media, desktop, unity7]

pre-refresh:
plugs: [network, network-bind, removable-media, desktop, unity7]

post-refresh:
plugs: [network, network-bind, removable-media, desktop, unity7]

Expand All @@ -108,6 +111,7 @@ parts:
- on amd64: https://download.onlyoffice.com/install/documentserver/linux/onlyoffice-documentserver-8.0.1_x86_64.tar.gz
- on arm64: https://download.onlyoffice.com/install/documentserver/linux/onlyoffice-documentserver-8.0.1_aarch64.tar.gz
stage-packages:
- curl
- libxml2
- fonts-dejavu
- fonts-liberation
Expand Down Expand Up @@ -424,6 +428,9 @@ parts:
sed -i -e "s|done|done\n\nexport LD_LIBRARY_PATH=\$SNAP/var/www/onlyoffice/documentserver/server/FileConverter/bin:\$LD_LIBRARY_PATH|" $CRAFT_PART_INSTALL/usr/sbin/documentserver-pluginsmanager.sh
sed -i -e '/chown/d' $CRAFT_PART_INSTALL/usr/sbin/documentserver-pluginsmanager.sh
sed -i -e 's|"\${args\[@\]}"|--update="\${PLUGIN_DIR}/plugin-list-default.json"|' $CRAFT_PART_INSTALL/usr/sbin/documentserver-pluginsmanager.sh
#Add documentserver-prepare4shutdown.sh to snap
cp common/documentserver/bin/documentserver-prepare4shutdown.sh.m4 $CRAFT_PART_INSTALL/usr/sbin/documentserver-prepare4shutdown.sh
chmod +x $CRAFT_PART_INSTALL/usr/sbin/documentserver-prepare4shutdown.sh
starter:
plugin: dump
Expand Down

0 comments on commit a0842a2

Please sign in to comment.