Skip to content

Commit

Permalink
Fix refresh (#7)
Browse files Browse the repository at this point in the history
Reviewed-on: https://git.onlyoffice.com/ONLYOFFICE/snap-documentserver/pulls/7
Co-authored-by: Roman Demidov <[email protected]>
Co-committed-by: Roman Demidov <[email protected]>
  • Loading branch information
romandemidov committed Oct 31, 2024
1 parent bffe3d0 commit fba1c97
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions snap/hooks/post-refresh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ fi
#fix sdkjs-plugins path if needed
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

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

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

0 comments on commit fba1c97

Please sign in to comment.