Skip to content

Commit

Permalink
v5.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
agolybev committed Jun 6, 2019
2 parents 3f7630c + 89c8836 commit d34297b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion run-document-server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ DATA_DIR="/var/www/onlyoffice/Data"
LOG_DIR="/var/log/onlyoffice"
DS_LOG_DIR="${LOG_DIR}/documentserver"
LIB_DIR="/var/lib/onlyoffice"
DS_LIB_DIR="${LIB_DIR}/documentserver"
CONF_DIR="/etc/onlyoffice/documentserver"

ONLYOFFICE_DATA_CONTAINER=${ONLYOFFICE_DATA_CONTAINER:-false}
Expand Down Expand Up @@ -147,7 +148,7 @@ update_rabbitmq_setting(){
if [ "${AMQP_SERVER_TYPE}" == "rabbitmq" ]; then
${JSON} -I -e "if(this.queue===undefined)this.queue={};"
${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

if [ "${AMQP_SERVER_TYPE}" == "activemq" ]; then
Expand Down Expand Up @@ -309,6 +310,11 @@ done

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
for i in ${LOG_DIR} ${LIB_DIR} ${DATA_DIR}; do
chown -R ds:ds "$i"
Expand Down

0 comments on commit d34297b

Please sign in to comment.