ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nc...@apache.org
Subject [22/50] [abbrv] ambari git commit: AMBARI-21396. /usr/sbin/ambari-agent missing after Ambari upgrade (aonishuk)
Date Thu, 06 Jul 2017 13:10:15 GMT
AMBARI-21396. /usr/sbin/ambari-agent missing after Ambari upgrade (aonishuk)


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

Branch: refs/heads/branch-feature-AMBARI-12556
Commit: 137ad20b0d055b9dff38674e6230450bf84a9305
Parents: 15342be
Author: Andrew Onishuk <aonishuk@hortonworks.com>
Authored: Mon Jul 3 17:55:42 2017 +0300
Committer: Andrew Onishuk <aonishuk@hortonworks.com>
Committed: Mon Jul 3 17:55:42 2017 +0300

----------------------------------------------------------------------
 ambari-agent/src/main/package/rpm/posttrans_agent.sh | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/137ad20b/ambari-agent/src/main/package/rpm/posttrans_agent.sh
----------------------------------------------------------------------
diff --git a/ambari-agent/src/main/package/rpm/posttrans_agent.sh b/ambari-agent/src/main/package/rpm/posttrans_agent.sh
index c301fc3..723bb93 100644
--- a/ambari-agent/src/main/package/rpm/posttrans_agent.sh
+++ b/ambari-agent/src/main/package/rpm/posttrans_agent.sh
@@ -18,6 +18,8 @@ RESOURCE_MANAGEMENT_DIR="/usr/lib/python2.6/site-packages/resource_management"
 RESOURCE_MANAGEMENT_DIR_AGENT="/usr/lib/ambari-agent/lib/resource_management"
 JINJA_DIR="/usr/lib/python2.6/site-packages/ambari_jinja2"
 JINJA_AGENT_DIR="/usr/lib/ambari-agent/lib/ambari_jinja2"
+AMBARI_AGENT_BINARY="/etc/init.d/ambari-agent"
+AMBARI_AGENT_BINARY_SYMLINK="/usr/sbin/ambari-agent"
 
 # remove RESOURCE_MANAGEMENT_DIR if it's a directory
 if [ -d "$RESOURCE_MANAGEMENT_DIR" ]; then  # resource_management dir exists
@@ -35,4 +37,9 @@ if [ ! -d "$JINJA_DIR" ]; then
   ln -s "$JINJA_AGENT_DIR" "$JINJA_DIR"
 fi
 
+# setting ambari-agent binary symlink
+if [ ! -f "$AMBARI_AGENT_BINARY_SYMLINK" ]; then
+  ln -s "$AMBARI_AGENT_BINARY" "$AMBARI_AGENT_BINARY_SYMLINK"
+fi
+
 exit 0
\ No newline at end of file


Mime
View raw message