From 355ae988675f6dcbe578b720dcf1a4966f531be1 Mon Sep 17 00:00:00 2001 From: Alexey Golubev Date: Fri, 10 Nov 2017 15:10:52 +0300 Subject: [PATCH 1/2] Setup rights for mapped folders. --- run-document-server.sh | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/run-document-server.sh b/run-document-server.sh index 949f4fc..8d15289 100755 --- a/run-document-server.sh +++ b/run-document-server.sh @@ -2,7 +2,9 @@ APP_DIR="/var/www/onlyoffice/documentserver" DATA_DIR="/var/www/onlyoffice/Data" -LOG_DIR="/var/log/onlyoffice/documentserver" +LOG_DIR="/var/log/onlyoffice" +DS_LOG_DIR="${LOG_DIR}/documentserver" +LIB_DIR="/var/lib/onlyoffice" CONF_DIR="/etc/onlyoffice/documentserver" ONLYOFFICE_DATA_CONTAINER=${ONLYOFFICE_DATA_CONTAINER:-false} @@ -251,10 +253,16 @@ update_log_settings(){ # create base folders for i in converter docservice spellchecker metrics gc; do - mkdir -p "${LOG_DIR}/$i" + mkdir -p "${DS_LOG_DIR}/$i" done -mkdir -p ${LOG_DIR}-example +mkdir -p ${DS_LOG_DIR}-example + +# change folder rights +for i in ${LOG_DIR} ${LIB_DIR} ${DATA_DIR}; do + chown -R onlyoffice:onlyoffice "$i" + chmod -R 755 "$i" +done if [ ${ONLYOFFICE_DATA_CONTAINER_HOST} = "localhost" ]; then From e2a60ff07c61b829e4246e56e23c7574db1b05c6 Mon Sep 17 00:00:00 2001 From: Alexey Golubev Date: Fri, 10 Nov 2017 15:11:15 +0300 Subject: [PATCH 2/2] Change default product name --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 3eee878..40cccd0 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ COMPANY_NAME ?= onlyoffice GIT_BRANCH ?= origin/develop -PRODUCT_NAME ?= documentserver-integration +PRODUCT_NAME ?= documentserver-ie PRODUCT_VERSION ?= 0.0.0 BUILD_NUMBER ?= 0