From 012b35d2f8c1a99ec9890e52d181d4d30f5b4d9a Mon Sep 17 00:00:00 2001 From: Dmitry Kireev Date: Fri, 27 Oct 2023 15:08:30 +0300 Subject: [PATCH] Cancel prepare4shutdown script during cluster installation (#673) * Cancel prepare4shutdown script during cluster installation * Fix line length --- run-document-server.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/run-document-server.sh b/run-document-server.sh index 5883e27..99b580c 100644 --- a/run-document-server.sh +++ b/run-document-server.sh @@ -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