From e44b50ee9754bead6319d01812f30674da01d263 Mon Sep 17 00:00:00 2001 From: jasondemorrow Date: Wed, 28 Sep 2016 17:01:08 -0700 Subject: [PATCH] Allow updating configs like port # on forced upgrade --- solr/bin/install_solr_service.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solr/bin/install_solr_service.sh b/solr/bin/install_solr_service.sh index 73c0712a756e..19b0b26ba82e 100755 --- a/solr/bin/install_solr_service.sh +++ b/solr/bin/install_solr_service.sh @@ -315,7 +315,7 @@ fi if [ -f "$SOLR_VAR_DIR/solr.in.sh" ]; then echo -e "\nMoving existing $SOLR_VAR_DIR/solr.in.sh to /etc/default/$SOLR_SERVICE.in.sh ...\n" mv "$SOLR_VAR_DIR/solr.in.sh" "/etc/default/$SOLR_SERVICE.in.sh" -elif [ -f "/etc/default/$SOLR_SERVICE.in.sh" ]; then +elif [ -f "/etc/default/$SOLR_SERVICE.in.sh" -a "$SOLR_UPGRADE" = "NO" ]; then echo -e "\n/etc/default/$SOLR_SERVICE.in.sh already exist. Skipping install ...\n" else echo -e "\nInstalling /etc/default/$SOLR_SERVICE.in.sh ...\n"