mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 01:26:39 -04:00
35 lines
1.1 KiB
Text
35 lines
1.1 KiB
Text
--- 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,11 +52,6 @@ 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 \
|
|
@@ -66,10 +61,7 @@ if [ "$ONLYOFFICE_DATA_CONTAINER" != "true" ]; then
|
|
|
|
#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
|