Skip to content
Snippets Groups Projects
Commit 10d54591 authored by Alexey Golubev's avatar Alexey Golubev
Browse files

v5.2.4

parents 0154bb08 96c37d73
Branches
No related tags found
No related merge requests found
...@@ -17,6 +17,7 @@ services: ...@@ -17,6 +17,7 @@ services:
networks: networks:
- onlyoffice - onlyoffice
volumes: volumes:
- /etc/onlyoffice
- /var/www/onlyoffice/Data - /var/www/onlyoffice/Data
- /var/log/onlyoffice - /var/log/onlyoffice
- /var/lib/onlyoffice/documentserver/App_Data/cache/files - /var/lib/onlyoffice/documentserver/App_Data/cache/files
......
...@@ -67,7 +67,7 @@ read_setting(){ ...@@ -67,7 +67,7 @@ read_setting(){
REDIS_SERVER_HOST=${REDIS_SERVER_HOST:-$(${JSON} services.CoAuthoring.redis.host)} REDIS_SERVER_HOST=${REDIS_SERVER_HOST:-$(${JSON} services.CoAuthoring.redis.host)}
REDIS_SERVER_PORT=${REDIS_SERVER_PORT:-6379} REDIS_SERVER_PORT=${REDIS_SERVER_PORT:-6379}
DS_LOG_LEVEL=${DS_LOG_LEVEL:-$(${JSON_LOG} levels.nodeJS)} DS_LOG_LEVEL=${DS_LOG_LEVEL:-$(${JSON_LOG} categories.default.level)}
} }
parse_rabbitmq_url(){ parse_rabbitmq_url(){
...@@ -198,7 +198,7 @@ create_postgresql_tbl(){ ...@@ -198,7 +198,7 @@ create_postgresql_tbl(){
# Create db on remote server # Create db on remote server
if $PSQL -lt | cut -d\| -f 1 | grep -qw | grep 0; then if $PSQL -lt | cut -d\| -f 1 | grep -qw | grep 0; then
$CREATEDB $DB_NAME $CREATEDB $POSTGRESQL_SERVER_DB_NAME
fi fi
$PSQL -d "${POSTGRESQL_SERVER_DB_NAME}" -f "${APP_DIR}/server/schema/postgresql/createdb.sql" $PSQL -d "${POSTGRESQL_SERVER_DB_NAME}" -f "${APP_DIR}/server/schema/postgresql/createdb.sql"
...@@ -256,7 +256,11 @@ update_supervisor_settings(){ ...@@ -256,7 +256,11 @@ update_supervisor_settings(){
} }
update_log_settings(){ update_log_settings(){
${JSON_LOG} -I -e "this.levels.nodeJS = '${DS_LOG_LEVEL}'" ${JSON_LOG} -I -e "this.categories.default.level = '${DS_LOG_LEVEL}'"
}
update_logrotate_settings(){
sed 's|\(^su\b\).*|\1 root root|' -i /etc/logrotate.conf
} }
# create base folders # create base folders
...@@ -341,6 +345,7 @@ if [ ${ONLYOFFICE_DATA_CONTAINER} != "true" ]; then ...@@ -341,6 +345,7 @@ if [ ${ONLYOFFICE_DATA_CONTAINER} != "true" ]; then
service supervisor start service supervisor start
# start cron to enable log rotating # start cron to enable log rotating
update_logrotate_settings
service cron start service cron start
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment