Bring back the owner and group when editing the Docs config
This commit is contained in:
parent
40745c357d
commit
9e07fd1b4f
@ -272,7 +272,7 @@ restart_services() {
|
||||
|
||||
echo -n "Updating database... "
|
||||
systemctl start ${PRODUCT}-migration-runner >/dev/null 2>&1 || true
|
||||
while systemctl is-active docspace-migration-runner &>/dev/null; do
|
||||
while systemctl is-active ${PRODUCT}-migration-runner &>/dev/null; do
|
||||
sleep 5
|
||||
done
|
||||
echo "OK"
|
||||
@ -575,6 +575,8 @@ setup_docs() {
|
||||
$JSON ${DS_CONF_DIR}/local.json -e "this.rabbitmq = { 'url': 'amqp://${RABBITMQ_USER}:${RABBITMQ_PASSWORD}@${RABBITMQ_HOST}:${RABBITMQ_PORT}' }" >/dev/null 2>&1
|
||||
$JSON ${DS_CONF_DIR}/local.json -e "this.services.CoAuthoring.redis = { 'host': '$REDIS_HOST' }" >/dev/null 2>&1
|
||||
sed 's/\(listen .*:\)\([0-9]\{2,5\}\b\)\( default_server\)\?\(;\)/\1'${DOCUMENT_SERVER_PORT}'\3\4/' -i ${DS_CONF_DIR}/nginx/ds.conf
|
||||
|
||||
chown ds:ds ${DS_CONF_DIR}/local.json
|
||||
elif [ $1 == "EXTERNAL_DOCS_SERVER" ]; then
|
||||
local APP_HOST=$(curl -s ifconfig.me)
|
||||
local EXTERNAL_DOCS_FLAG="rewrite"
|
||||
|
Loading…
Reference in New Issue
Block a user