ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aonis...@apache.org
Subject ambari git commit: AMBARI-15163. 'ambari-server start' is failed [import FatalException, NonFatalException] after upgrade from 2.1.2 ... 2.2.0.0 etc to 2.2.1.1 (aonishuk)
Date Thu, 25 Feb 2016 07:26:54 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.2 ff9ccb354 -> 031f4bf91


AMBARI-15163. 'ambari-server start' is failed [import FatalException, NonFatalException] after
upgrade from 2.1.2 ... 2.2.0.0 etc  to 2.2.1.1 (aonishuk)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/031f4bf9
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/031f4bf9
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/031f4bf9

Branch: refs/heads/branch-2.2
Commit: 031f4bf91b5a4fa538f2cac1f3b482c79a1e7443
Parents: ff9ccb3
Author: Andrew Onishuk <aonishuk@hortonworks.com>
Authored: Thu Feb 25 09:26:15 2016 +0200
Committer: Andrew Onishuk <aonishuk@hortonworks.com>
Committed: Thu Feb 25 09:26:37 2016 +0200

----------------------------------------------------------------------
 ambari-server/conf/unix/install-helper.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/031f4bf9/ambari-server/conf/unix/install-helper.sh
----------------------------------------------------------------------
diff --git a/ambari-server/conf/unix/install-helper.sh b/ambari-server/conf/unix/install-helper.sh
index 9d3c66f..f3cff91 100644
--- a/ambari-server/conf/unix/install-helper.sh
+++ b/ambari-server/conf/unix/install-helper.sh
@@ -73,7 +73,7 @@ do_install(){
 
   PYTHON_PATH_LINE='export PYTHONPATH=$PYTHONPATH:/usr/lib/python2.6/site-packages'
   grep "^$PYTHON_PATH_LINE\$" "$AMBARI_ENV_RPMSAVE" > /dev/null
-  if [ $? -ne 0 ]; then
+  if [ -f "$AMBARI_ENV_RPMSAVE" ] && [ $? -ne 0 ] ; then
     echo -e "\n$PYTHON_PATH_LINE" >> $AMBARI_ENV_RPMSAVE
   fi
 }


Mime
View raw message