From 23d320dc2a705dfb4450455a0c24f9f8841104b6 Mon Sep 17 00:00:00 2001 From: Alexey Golubev Date: Tue, 2 Oct 2018 19:36:14 +0300 Subject: [PATCH] Fix minishift startup --- Dockerfile | 2 +- run-document-server.sh | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index a59c52c..038c756 100644 --- a/Dockerfile +++ b/Dockerfile @@ -70,6 +70,6 @@ RUN echo "$REPO_URL" | tee /etc/apt/sources.list.d/onlyoffice.list && \ rm -rf /var/log/onlyoffice && \ rm -rf /var/lib/apt/lists/* -VOLUME /etc/onlyoffice /var/log/onlyoffice /var/lib/onlyoffice /var/www/onlyoffice/Data /var/lib/postgresql /usr/share/fonts/truetype/custom +VOLUME /var/log/onlyoffice /var/lib/onlyoffice /var/www/onlyoffice/Data /var/lib/postgresql /usr/share/fonts/truetype/custom ENTRYPOINT /app/onlyoffice/run-document-server.sh diff --git a/run-document-server.sh b/run-document-server.sh index 5e2585f..397323f 100755 --- a/run-document-server.sh +++ b/run-document-server.sh @@ -267,15 +267,11 @@ done mkdir -p ${DS_LOG_DIR}-example # change folder rights -for i in ${CONF_DIR} ${LOG_DIR} ${LIB_DIR} ${DATA_DIR}; do +for i in ${LOG_DIR} ${LIB_DIR} ${DATA_DIR}; do chown -R onlyoffice:onlyoffice "$i" chmod -R 755 "$i" done -#setup logrotate config rights -chmod 644 ${CONF_DIR}/logrotate/* -chown root:root ${CONF_DIR}/logrotate/* - if [ ${ONLYOFFICE_DATA_CONTAINER_HOST} = "localhost" ]; then read_setting