summarylogtreecommitdiffstats
path: root/onlyoffice-documentserver.install
blob: 012b9dced432be19a3b1f63cbd82e5d0d3cba5c0 (plain)
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
post_install() {
echo -n Generating AllFonts.js, please wait...
sudo -u onlyoffice /usr/share/webapps/onlyoffice/documentserver/server/tools/allfontsgen\
 --input="/usr/share/webapps/onlyoffice/documentserver/core-fonts"\
 --allfonts-web="/usr/share/webapps/onlyoffice/documentserver/sdkjs/common/AllFonts.js"\
 --allfonts="/usr/share/webapps/onlyoffice/documentserver/server/FileConverter/bin/AllFonts.js"\
 --images="/usr/share/webapps/onlyoffice/documentserver/sdkjs/common/Images"\
 --selection="/usr/share/webapps/onlyoffice/documentserver/server/FileConverter/bin/font_selection.bin"\
 --output-web="/usr/share/webapps/onlyoffice/documentserver/fonts"\
 --use-system="true"
chown -R onlyoffice:onlyoffice "/usr/share/webapps/onlyoffice/documentserver/sdkjs"
chown -R onlyoffice:onlyoffice "/usr/share/webapps/onlyoffice/documentserver/server/FileConverter/bin"
chown -R onlyoffice:onlyoffice "/usr/share/webapps/onlyoffice/documentserver/fonts"
echo Done
echo -n Generating presentation themes, please wait...
sudo -u onlyoffice /usr/share/webapps/onlyoffice/documentserver/server/tools/allthemesgen\
 --converter-dir="/usr/share/webapps/onlyoffice/documentserver/server/FileConverter/bin"\
 --src="/usr/share/webapps/onlyoffice/documentserver/sdkjs/slide/themes"\
 --output="/usr/share/webapps/onlyoffice/documentserver/sdkjs/common/Images"
}
post_upgrade() {
   post_install
}