Skip to content

Commit

Permalink
Cancel prepare4shutdown script during cluster installation (#673)
Browse files Browse the repository at this point in the history
* Cancel prepare4shutdown script during cluster installation

* Fix line length
  • Loading branch information
KireevDmitry authored Oct 27, 2023
1 parent 5ef86cd commit 012b35d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion run-document-server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
umask 0022

function clean_exit {
/usr/bin/documentserver-prepare4shutdown.sh
if [ ${ONLYOFFICE_DATA_CONTAINER} == "false" ] && \
[ ${ONLYOFFICE_DATA_CONTAINER_HOST} == "localhost" ]; then
/usr/bin/documentserver-prepare4shutdown.sh
fi
}

trap clean_exit SIGTERM
Expand Down

0 comments on commit 012b35d

Please sign in to comment.