mirror of https://github.com/apache/lucene.git
SOLR-682: Add free bsd support to scripts
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@683998 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
6c39f09406
commit
954abed4b2
|
@ -583,6 +583,8 @@ Other Changes
|
|||
links more resilient to configs loaded via an InputStream
|
||||
(Lars Kotthoff, hossman)
|
||||
|
||||
21. SOLR-682: Scripts now support FreeBSD (Richard Trey Hyde via gsingers)
|
||||
|
||||
Build
|
||||
1. SOLR-411. Changed the names of the Solr JARs to use the defacto standard JAR names based on
|
||||
project-name-version.jar. This yields, for example:
|
||||
|
|
|
@ -175,7 +175,7 @@ trap 'echo cleaning up, please wait ...;/bin/rm -rf ${data_dir}/${name} ${data_d
|
|||
|
||||
# make a backup using hard links into temporary location
|
||||
# then move it into place atomically
|
||||
if [[ "${OS}" == "SunOS" || "${OS}" == "Darwin" ]]
|
||||
if [[ "${OS}" == "SunOS" || "${OS}" == "Darwin" || "${OS}" == "FreeBSD" ]]
|
||||
then
|
||||
orig_dir=$(pwd)
|
||||
mkdir ${data_dir}/${temp}
|
||||
|
|
|
@ -175,7 +175,7 @@ trap 'echo cleaning up, please wait ...;/bin/rm -rf ${data_dir}/${name} ${data_d
|
|||
|
||||
# make a backup using hard links into temporary location
|
||||
# then move it into place atomically
|
||||
if [[ "${OS}" == "SunOS" || "${OS}" == "Darwin" ]]
|
||||
if [[ "${OS}" == "SunOS" || "${OS}" == "Darwin" || "${OS}" == "FreeBSD"]]
|
||||
then
|
||||
orig_dir=$(pwd)
|
||||
mkdir ${data_dir}/${temp}
|
||||
|
|
|
@ -101,7 +101,7 @@ logMessage making backup ${data_dir}/${name}
|
|||
|
||||
# make a backup using hard links into temporary location
|
||||
# then move it into place atomically
|
||||
if [[ "${OS}" == "SunOS" || "${OS}" == "Darwin" ]]
|
||||
if [[ "${OS}" == "SunOS" || "${OS}" == "Darwin" || "${OS}" == "FreeBSD" ]]
|
||||
then
|
||||
orig_dir=$(pwd)
|
||||
mkdir ${data_dir}/${temp}
|
||||
|
|
|
@ -91,7 +91,7 @@ fi
|
|||
|
||||
function remove
|
||||
{
|
||||
if [[ "${OS}" == "Darwin" ]]
|
||||
if [[ "${OS}" == "Darwin" || "${OS}" == "FreeBSD" ]]
|
||||
then
|
||||
syncing=`ps -www -U ${user} |grep -w rsync|grep -v grep|grep -w $1`
|
||||
else
|
||||
|
|
|
@ -141,7 +141,7 @@ fi
|
|||
# install using hard links into temporary directory
|
||||
# remove original index and then atomically copy new one into place
|
||||
logMessage installing snapshot ${name}
|
||||
if [[ "${OS}" == "SunOS" || "${OS}" == "Darwin" ]]
|
||||
if [[ "${OS}" == "SunOS" || "${OS}" == "Darwin" || "${OS}" == "FreeBSD" ]]
|
||||
then
|
||||
orig_dir=$(pwd)
|
||||
mkdir ${data_dir}/index.tmp$$ && \
|
||||
|
|
|
@ -200,7 +200,7 @@ fi
|
|||
# take a snapshot of current index so that only modified files will be rsync-ed
|
||||
# put the snapshot in the 'work-in-progress" directory to prevent it from
|
||||
# being installed while the copying is still in progress
|
||||
if [[ "${OS}" == "SunOS" || "${OS}" == "Darwin" ]]
|
||||
if [[ "${OS}" == "SunOS" || "${OS}" == "Darwin" || "${OS}" == "FreeBSD" ]]
|
||||
then
|
||||
orig_dir=$(pwd)
|
||||
mkdir ${data_dir}/${name}-wip
|
||||
|
|
Loading…
Reference in New Issue