瀏覽代碼

AMBARI-10201. Ambari-agent rpm install fails on Centos7 (aonishuk)

Andrew Onishuk 10 年之前
父節點
當前提交
90a88c6aab
共有 2 個文件被更改,包括 2 次插入1 次删除
  1. 1 1
      ambari-agent/conf/unix/install-helper.sh
  2. 1 0
      ambari-agent/pom.xml

+ 1 - 1
ambari-agent/conf/unix/install-helper.sh

@@ -52,7 +52,7 @@ do_install(){
   
   chmod 440 "$SUDOERS_FILE"
   
-  grep '^#includedir /etc/sudoers.d$' /etc/sudoers
+  grep '^#includedir /etc/sudoers.d$' /etc/sudoers > /dev/null
   if [ $? -ne 0 ] ; then
     echo '#includedir /etc/sudoers.d' >> /etc/sudoers
   fi

+ 1 - 0
ambari-agent/pom.xml

@@ -385,6 +385,7 @@
               <directory>${sudoers.d.dir}</directory>
               <username>root</username>
               <groupname>root</groupname>
+              <directoryIncluded>false</directoryIncluded>
               <sources>
                 <source>
                   <location>etc/sudoers.d</location>