From bd5f3ae723776b7f9a5a5ab76c638229262904df Mon Sep 17 00:00:00 2001 From: Otis Gospodnetic Date: Thu, 21 Jun 2007 12:10:30 +0000 Subject: [PATCH] - Added "&&" between the 3 calls that copy, remove, and move index data to add a bit of extra robustness git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@549454 13f79535-47bb-0310-9956-ffa450edef68 --- src/scripts/snapinstaller | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scripts/snapinstaller b/src/scripts/snapinstaller index f716e1a0b07..9ed8a589c23 100755 --- a/src/scripts/snapinstaller +++ b/src/scripts/snapinstaller @@ -141,8 +141,8 @@ fi # install using hard links into temporary directory # remove original index and then atomically copy new one into place logMessage installing snapshot ${name} -cp -lr ${name}/ ${data_dir}/index.tmp$$ -/bin/rm -rf ${data_dir}/index +cp -lr ${name}/ ${data_dir}/index.tmp$$ && \ +/bin/rm -rf ${data_dir}/index && \ mv -f ${data_dir}/index.tmp$$ ${data_dir}/index # update distribution stats