diff options
author | Vladislav | 2023-01-14 00:55:35 +0300 |
---|---|---|
committer | Vladislav | 2023-01-14 00:55:35 +0300 |
commit | c31c2ff3338034cb195e1f1b06dc4f97b453b8fe (patch) | |
tree | e5c2cbc6ad11ac7a63ba4192fa3283f94e698d01 /onlyoffice-documentserver.install | |
parent | 77352ba7e6dec79641a4f1512189438f61c14db4 (diff) | |
download | aur-c31c2ff3338034cb195e1f1b06dc4f97b453b8fe.tar.gz |
update to 7.2.2 and bugfix
Diffstat (limited to 'onlyoffice-documentserver.install')
-rw-r--r-- | onlyoffice-documentserver.install | 23 |
1 files changed, 5 insertions, 18 deletions
diff --git a/onlyoffice-documentserver.install b/onlyoffice-documentserver.install index 012b9dced432..ee147e579b4e 100644 --- a/onlyoffice-documentserver.install +++ b/onlyoffice-documentserver.install @@ -1,25 +1,12 @@ post_install() { +useradd -r -c "onlyoffice documentserver" -d / -s /sbin/nologin onlyoffice 2>/dev/null +chown -R onlyoffice:onlyoffice /usr/share/webapps/onlyoffice/documentserver/{sdkjs,fonts,server/FileConverter/bin} +install -d -m 0755 -o onlyoffice -g onlyoffice /var/lib/onlyoffice/documentserver/App_Data/cache 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 +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" && echo Done || echo Error! 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" +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" && echo Done || echo Error! } post_upgrade() { post_install } - - |