Skip to content

Commit

Permalink
Fix refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
romandemidov committed Dec 17, 2024
1 parent 1c8448c commit 5908f88
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions snap/hooks/post-refresh
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,9 @@ fi
sed -i "/sdkjs-plugins/s/\"\/snap/\"\/var\/snap/g" $SNAP_DATA/etc/onlyoffice/documentserver/local.json

API_JS_PATH="/var/www/onlyoffice/documentserver/web-apps/apps/api/documents"
if ! [ -f $SNAP_DATA/$API_JS_PATH/api.js.tpl ]; then
mkdir -p $SNAP_DATA/$API_JS_PATH
cp $SNAP/$API_JS_PATH/api.js.tpl $SNAP_DATA/$API_JS_PATH/api.js.tpl
fi
mkdir -p $SNAP_DATA/$API_JS_PATH
rm -f $SNAP_DATA/$API_JS_PATH/api.js.tpl
cp $SNAP/$API_JS_PATH/api.js.tpl $SNAP_DATA/$API_JS_PATH/api.js.tpl

$SNAP/usr/sbin/generate-all-fonts.sh

Expand Down

0 comments on commit 5908f88

Please sign in to comment.