From fba1c97a4e0a455bf62ff82c369d49b6f6d11038 Mon Sep 17 00:00:00 2001 From: Roman Demidov Date: Thu, 31 Oct 2024 09:24:15 +0000 Subject: [PATCH] Fix refresh (#7) Reviewed-on: https://git.onlyoffice.com/ONLYOFFICE/snap-documentserver/pulls/7 Co-authored-by: Roman Demidov Co-committed-by: Roman Demidov --- snap/hooks/post-refresh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/snap/hooks/post-refresh b/snap/hooks/post-refresh index 17b003f..7774be2 100755 --- a/snap/hooks/post-refresh +++ b/snap/hooks/post-refresh @@ -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