v5.3.1
This commit is contained in:
commit
d34297b159
1 changed files with 7 additions and 1 deletions
|
@ -8,6 +8,7 @@ DATA_DIR="/var/www/onlyoffice/Data"
|
||||||
LOG_DIR="/var/log/onlyoffice"
|
LOG_DIR="/var/log/onlyoffice"
|
||||||
DS_LOG_DIR="${LOG_DIR}/documentserver"
|
DS_LOG_DIR="${LOG_DIR}/documentserver"
|
||||||
LIB_DIR="/var/lib/onlyoffice"
|
LIB_DIR="/var/lib/onlyoffice"
|
||||||
|
DS_LIB_DIR="${LIB_DIR}/documentserver"
|
||||||
CONF_DIR="/etc/onlyoffice/documentserver"
|
CONF_DIR="/etc/onlyoffice/documentserver"
|
||||||
|
|
||||||
ONLYOFFICE_DATA_CONTAINER=${ONLYOFFICE_DATA_CONTAINER:-false}
|
ONLYOFFICE_DATA_CONTAINER=${ONLYOFFICE_DATA_CONTAINER:-false}
|
||||||
|
@ -147,7 +148,7 @@ update_rabbitmq_setting(){
|
||||||
if [ "${AMQP_SERVER_TYPE}" == "rabbitmq" ]; then
|
if [ "${AMQP_SERVER_TYPE}" == "rabbitmq" ]; then
|
||||||
${JSON} -I -e "if(this.queue===undefined)this.queue={};"
|
${JSON} -I -e "if(this.queue===undefined)this.queue={};"
|
||||||
${JSON} -I -e "this.queue.type = 'rabbitmq'"
|
${JSON} -I -e "this.queue.type = 'rabbitmq'"
|
||||||
${JSON} -I -e "this.rabbitmq.url = '${RABBITMQ_SERVER_URL}'"
|
${JSON} -I -e "this.rabbitmq.url = '${AMQP_SERVER_URL}'"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${AMQP_SERVER_TYPE}" == "activemq" ]; then
|
if [ "${AMQP_SERVER_TYPE}" == "activemq" ]; then
|
||||||
|
@ -309,6 +310,11 @@ done
|
||||||
|
|
||||||
mkdir -p ${DS_LOG_DIR}-example
|
mkdir -p ${DS_LOG_DIR}-example
|
||||||
|
|
||||||
|
# create app folders
|
||||||
|
for i in App_Data/cache/files App_Data/docbuilder; do
|
||||||
|
mkdir -p "${DS_LIB_DIR}/$i"
|
||||||
|
done
|
||||||
|
|
||||||
# change folder rights
|
# change folder rights
|
||||||
for i in ${LOG_DIR} ${LIB_DIR} ${DATA_DIR}; do
|
for i in ${LOG_DIR} ${LIB_DIR} ${DATA_DIR}; do
|
||||||
chown -R ds:ds "$i"
|
chown -R ds:ds "$i"
|
||||||
|
|
Loading…
Reference in a new issue