Ver Fonte

AMBARI-22941. Debian stackdeploys failing with "ambari-agent: command not found" errors (aonishuk)

Andrew Onishuk há 7 anos atrás
pai
commit
03b30150b7
1 ficheiros alterados com 4 adições e 0 exclusões
  1. 4 0
      ambari-agent/conf/unix/install-helper.sh

+ 4 - 0
ambari-agent/conf/unix/install-helper.sh

@@ -59,6 +59,10 @@ do_install(){
     mv /etc/ambari-agent/conf.save /etc/ambari-agent/conf_$(date '+%d_%m_%y_%H_%M').save
   fi
 
+  # setting up /usr/sbin/ambari-agent symlink
+  rm -f "$AMBARI_AGENT_BINARY_SYMLINK"
+  ln -s "$AMBARI_AGENT_BINARY" "$AMBARI_AGENT_BINARY_SYMLINK"
+
   # these symlinks (or directories) where created in ambari releases prior to ambari-2.6.2. Do clean up.   
   rm -rf "$OLD_COMMON_DIR" "$OLD_RESOURCE_MANAGEMENT_DIR" "$OLD_JINJA_DIR" "$OLD_SIMPLEJSON_DIR" "$OLD_COMMON_DIR" "$OLD_AMBARI_AGENT_DIR"