Skip to content

Commit

Permalink
ZCS-13864:Onlyoffice logo reset it back to show (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
umagmrit authored Sep 20, 2023
1 parent c12f7d8 commit 70b5b18
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile.build
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ all: clean zimbra-onlyoffice-pkg
########################################################################################################

ONLY_OFFICE_VERSION = 1.0
ONLY_OFFICE_URL="https://files.zimbra.com/downloads/onlyoffice/u14/zimbra-onlyoffice-v7.2.1.tar.gz"
ONLY_OFFICE_URL="https://files.zimbra.com/downloads/onlyoffice/u14/zimbra-onlyoffice-v7.2.2.56.tar.gz"

stage-zimbra-onlyoffice-pkg: downloads
mkdir -p build/stage/zimbra-onlyoffice/opt/zimbra
Expand All @@ -32,6 +32,7 @@ zimbra-onlyoffice-pkg: stage-zimbra-onlyoffice-pkg
--pkg-name=zimbra-onlyoffice \
--out-type=binary \
--pkg-summary="Zimbra onlyoffice package" \
--pkg-pre-install-script='scripts/preinst.sh' \
--pkg-post-install-script='scripts/postinst.sh' \
--pkg-installs='/opt/zimbra/onlyoffice/*'

Expand Down
5 changes: 5 additions & 0 deletions scripts/postinst.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ if [ -f /opt/zimbra/onlyoffice/bin/zmonlyofficeconfig ]; then
chmod +x /opt/zimbra/onlyoffice/bin/zmonlyofficeconfig
fi

if [ -f /opt/zimbra/onlyoffice/bin/process_id.json.bak ]; then
mv -f /opt/zimbra/onlyoffice/bin/process_id.json.bak /opt/zimbra/onlyoffice/bin/process_id.json
/opt/zimbra/onlyoffice/bin/zmonlyofficeconfig
fi

if [ -f /opt/zimbra/onlyoffice/bin/process_id.json ]; then
chmod 775 /opt/zimbra/onlyoffice/bin/process_id.json
chown zimbra:zimbra /opt/zimbra/onlyoffice/bin/process_id.json
Expand Down
5 changes: 5 additions & 0 deletions scripts/preinst.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
if [ -f /opt/zimbra/onlyoffice/bin/process_id.json ]; then
cp -af /opt/zimbra/onlyoffice/bin/process_id.json /opt/zimbra/onlyoffice/bin/process_id.json.bak
chmod 775 /opt/zimbra/onlyoffice/bin/process_id.json.bak
chown zimbra:zimbra /opt/zimbra/onlyoffice/bin/process_id.json.bak
fi

0 comments on commit 70b5b18

Please sign in to comment.