SOLR-10644: solr.in.sh installed by install script should be writable by solr user

This commit is contained in:
Jan Høydahl 2017-05-09 13:03:18 +02:00
parent c9541c216d
commit d59faafd89
2 changed files with 4 additions and 2 deletions

View File

@ -398,6 +398,8 @@ Other Changes
was an improvement for the json "arrntv" format, it caused problems for the default json format.
(James Dyer, reported by Nikita Pchelintsev)
* SOLR-10644: solr.in.sh installed by install script should be writable by solr user (janhoy)
================== 6.5.1 ==================
Bug Fixes

View File

@ -331,8 +331,8 @@ SOLR_LOGS_DIR=\"$SOLR_VAR_DIR/logs\"
SOLR_PORT=\"$SOLR_PORT\"
" >> "/etc/default/$SOLR_SERVICE.in.sh"
fi
chown root: "/etc/default/$SOLR_SERVICE.in.sh"
chmod 0644 "/etc/default/$SOLR_SERVICE.in.sh"
chown ${SOLR_USER}: "/etc/default/$SOLR_SERVICE.in.sh"
chmod 0660 "/etc/default/$SOLR_SERVICE.in.sh"
# install data directories and files
mkdir -p "$SOLR_VAR_DIR/data"