lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ctarg...@apache.org
Subject [40/50] [abbrv] lucene-solr:jira/solr-10290: SOLR-10644: solr.in.sh installed by install script should be writable by solr user
Date Wed, 10 May 2017 12:35:27 GMT
SOLR-10644: solr.in.sh installed by install script should be writable by solr user


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/dea9c334
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/dea9c334
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/dea9c334

Branch: refs/heads/jira/solr-10290
Commit: dea9c334fc597953dcdff31ce6df73d584e744ec
Parents: 788b696
Author: Jan H√łydahl <janhoy@apache.org>
Authored: Tue May 9 13:03:18 2017 +0200
Committer: Cassandra Targett <cassandra.targett@lucidworks.com>
Committed: Wed May 10 07:30:33 2017 -0500

----------------------------------------------------------------------
 solr/CHANGES.txt                 | 2 ++
 solr/bin/install_solr_service.sh | 4 ++--
 2 files changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/dea9c334/solr/CHANGES.txt
----------------------------------------------------------------------
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index 41586ed..d2ce667 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -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

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/dea9c334/solr/bin/install_solr_service.sh
----------------------------------------------------------------------
diff --git a/solr/bin/install_solr_service.sh b/solr/bin/install_solr_service.sh
index f42dd5a..54b62e5 100755
--- a/solr/bin/install_solr_service.sh
+++ b/solr/bin/install_solr_service.sh
@@ -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"


Mime
View raw message