Remade config rights setup

This commit is contained in:
Alexey Golubev 2018-04-26 18:04:53 +03:00
parent 5c57db7e1d
commit 8b952d1ae7

View file

@ -267,17 +267,11 @@ done
mkdir -p ${DS_LOG_DIR}-example
# change folder rights
for i in ${LOG_DIR} ${LIB_DIR} ${DATA_DIR}; do
for i in ${CONF_DIR} ${LOG_DIR} ${LIB_DIR} ${DATA_DIR}; do
chown -R onlyoffice:onlyoffice "$i"
chmod -R 755 "$i"
done
# enable config modifications
chmod ug+w \
${ONLYOFFICE_DEFAULT_CONFIG} \
${ONLYOFFICE_LOG4JS_CONFIG} \
${ONLYOFFICE_EXAMPLE_CONFIG}
if [ ${ONLYOFFICE_DATA_CONTAINER_HOST} = "localhost" ]; then
read_setting