Skip to content

Commit 012b35d

Browse files
authored
Cancel prepare4shutdown script during cluster installation (ONLYOFFICE#673)
* Cancel prepare4shutdown script during cluster installation * Fix line length
1 parent 5ef86cd commit 012b35d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

run-document-server.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
umask 0022
44

55
function clean_exit {
6-
/usr/bin/documentserver-prepare4shutdown.sh
6+
if [ ${ONLYOFFICE_DATA_CONTAINER} == "false" ] && \
7+
[ ${ONLYOFFICE_DATA_CONTAINER_HOST} == "localhost" ]; then
8+
/usr/bin/documentserver-prepare4shutdown.sh
9+
fi
710
}
811

912
trap clean_exit SIGTERM

0 commit comments

Comments
 (0)