ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dmitriu...@apache.org
Subject [1/2] ambari git commit: AMBARI-18305. (2.5.0 fix) Ambari server upgrade script deletes all .pyc files (dlysnichenko)
Date Mon, 05 Sep 2016 14:45:34 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.5 f09b00491 -> 598e53db6
  refs/heads/trunk 1aa13da87 -> 32e02482d


AMBARI-18305. (2.5.0 fix) Ambari server upgrade script deletes all .pyc files (dlysnichenko)


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

Branch: refs/heads/trunk
Commit: 32e02482d4e6dc7b66bafc6edecb84f0007f8a82
Parents: 1aa13da
Author: Lisnichenko Dmitro <dlysnichenko@hortonworks.com>
Authored: Mon Sep 5 17:43:23 2016 +0300
Committer: Lisnichenko Dmitro <dlysnichenko@hortonworks.com>
Committed: Mon Sep 5 17:43:23 2016 +0300

----------------------------------------------------------------------
 ambari-agent/conf/unix/install-helper.sh  | 8 ++++----
 ambari-server/conf/unix/install-helper.sh | 6 +++---
 2 files changed, 7 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/32e02482/ambari-agent/conf/unix/install-helper.sh
----------------------------------------------------------------------
diff --git a/ambari-agent/conf/unix/install-helper.sh b/ambari-agent/conf/unix/install-helper.sh
index 3614659..0e32d0a 100644
--- a/ambari-agent/conf/unix/install-helper.sh
+++ b/ambari-agent/conf/unix/install-helper.sh
@@ -34,10 +34,10 @@ AMBARI_AGENT_VAR="/var/lib/ambari-agent"
 
 clean_pyc_files(){
   # cleaning old *.pyc files
-  find $RESOURCE_MANAGEMENT_DIR/ -name *.pyc -exec rm {} \;
-  find $COMMON_DIR/ -name *.pyc -exec rm {} \;
-  find $AMBARI_AGENT/ -name *.pyc -exec rm {} \;
-  find $AMBARI_AGENT_VAR/ -name *.pyc -exec rm {} \;
+  find ${RESOURCE_MANAGEMENT_DIR:?} -name *.pyc -exec rm {} \;
+  find ${COMMON_DIR:?} -name *.pyc -exec rm {} \;
+  find ${AMBARI_AGENT:?} -name *.pyc -exec rm {} \;
+  find ${AMBARI_AGENT_VAR:?} -name *.pyc -exec rm {} \;
 }
 
 

http://git-wip-us.apache.org/repos/asf/ambari/blob/32e02482/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 369a56a..229e146 100644
--- a/ambari-server/conf/unix/install-helper.sh
+++ b/ambari-server/conf/unix/install-helper.sh
@@ -46,9 +46,9 @@ AMBARI_LOG4J="${AMBARI_CONFIGS_DIR}/log4j.properties"
 
 clean_pyc_files(){
   # cleaning old *.pyc files
-  find $RESOURCE_MANAGEMENT_DIR/ -name *.pyc -exec rm {} \;
-  find $COMMON_DIR/ -name *.pyc -exec rm {} \;
-  find $AMBARI_SERVER/ -name *.pyc -exec rm {} \;
+  find ${RESOURCE_MANAGEMENT_DIR:?} -name *.pyc -exec rm {} \;
+  find ${COMMON_DIR:?} -name *.pyc -exec rm {} \;
+  find ${AMBARI_SERVER:?} -name *.pyc -exec rm {} \;
 }
 
 


Mime
View raw message