blob: 60005e0dd2751ede089b7480e4ed56fd2a717ce4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
--- document-server-package/common/documentserver/bin/documentserver-generate-allfonts.sh.m4.orig 2023-06-20 13:47:11 UTC
+++ document-server-package/common/documentserver/bin/documentserver-generate-allfonts.sh.m4
@@ -5,7 +5,7 @@ fi
ONLYOFFICE_DATA_CONTAINER=$1
fi
-DIR="/var/www/M4_DS_PREFIX"
+DIR="%%LOCALBASE%%/www/M4_DS_PREFIX"
export LD_LIBRARY_PATH=/var/www/M4_DS_PREFIX/server/FileConverter/bin:$LD_LIBRARY_PATH
@@ -52,24 +52,16 @@ echo Done
echo Done
-# Setting user rights for files created in the previous steps
-chown -R ds:ds "$DIR/sdkjs"
-chown -R ds:ds "$DIR/server/FileConverter/bin"
-chown -R ds:ds "$DIR/fonts"
-
#Remove gzipped files
rm -f \
$DIR/fonts/*.gz \
$DIR/sdkjs/common/AllFonts.js.gz \
- $DIR/sdkjs/common/Images/*.gz \
+ $DIR/sdkjs/common/Images/*.gz \
$DIR/sdkjs/slide/themes/themes.js.gz
#Restart web-site and converter
if [ "$ONLYOFFICE_DATA_CONTAINER" != "true" ]; then
- if pgrep -x ""systemd"" >/dev/null; then
- systemctl restart ds-docservice
- systemctl restart ds-converter
- elif pgrep -x ""supervisord"" >/dev/null; then
+ if pgrep -f "supervisord" >/dev/null; then
supervisorctl restart ds:docservice
supervisorctl restart ds:converter
fi
|