ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dmitriu...@apache.org
Subject ambari git commit: AMBARI-18305. (2.5.0 fix) Ambari server upgrade script deletes all .pyc files (dlysnichenko)
Date Mon, 03 Oct 2016 11:43:58 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.5 2271eec9f -> 6d5b0d1bb


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/6d5b0d1b
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/6d5b0d1b
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/6d5b0d1b

Branch: refs/heads/branch-2.5
Commit: 6d5b0d1bb1dcf247d76b23329bdfd51e0e5b459f
Parents: 2271eec
Author: Lisnichenko Dmitro <dlysnichenko@hortonworks.com>
Authored: Mon Sep 5 17:43:23 2016 +0300
Committer: Lisnichenko Dmitro <dlysnichenko@hortonworks.com>
Committed: Mon Oct 3 14:43:28 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/6d5b0d1b/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/6d5b0d1b/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