You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ao...@apache.org on 2015/08/25 13:56:56 UTC

[1/2] ambari git commit: AMBARI-12870. Installing Ambari-2.1.0 removes /etc/sudoers.d/ambari-agent file (aonishuk)

Repository: ambari
Updated Branches:
  refs/heads/branch-2.1 b8e3988cb -> 0d426fe47
  refs/heads/trunk e6ad02fe3 -> cdb98f73b


AMBARI-12870. Installing Ambari-2.1.0 removes /etc/sudoers.d/ambari-agent file (aonishuk)


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

Branch: refs/heads/trunk
Commit: cdb98f73bd1827f6e6ad0c3670705473abb7d3f3
Parents: e6ad02f
Author: Andrew Onishuk <ao...@hortonworks.com>
Authored: Tue Aug 25 14:55:57 2015 +0300
Committer: Andrew Onishuk <ao...@hortonworks.com>
Committed: Tue Aug 25 14:55:57 2015 +0300

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


http://git-wip-us.apache.org/repos/asf/ambari/blob/cdb98f73/ambari-agent/src/main/package/rpm/preinstall.sh
----------------------------------------------------------------------
diff --git a/ambari-agent/src/main/package/rpm/preinstall.sh b/ambari-agent/src/main/package/rpm/preinstall.sh
index fc6719b..e135c18 100644
--- a/ambari-agent/src/main/package/rpm/preinstall.sh
+++ b/ambari-agent/src/main/package/rpm/preinstall.sh
@@ -27,7 +27,11 @@ fi
 BAK=/etc/ambari-agent/conf/ambari-agent.ini.old
 ORIG=/etc/ambari-agent/conf/ambari-agent.ini
 
+BAK_SUDOERS=/etc/sudoers.d/ambari-agent.bak
+ORIG_SUDOERS=/etc/sudoers.d/ambari-agent
+
 [ -f $ORIG ] && mv -f $ORIG $BAK
+[ -f $ORIG_SUDOERS ] && mv -f $ORIG_SUDOERS $BAK_SUDOERS
 
 if [ -d "$STACKS_FOLDER" ]
 then


[2/2] ambari git commit: AMBARI-12870. Installing Ambari-2.1.0 removes /etc/sudoers.d/ambari-agent file (aonishuk)

Posted by ao...@apache.org.
AMBARI-12870. Installing Ambari-2.1.0 removes /etc/sudoers.d/ambari-agent file (aonishuk)


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

Branch: refs/heads/branch-2.1
Commit: 0d426fe479b7770756eb17f04152d19d5e016522
Parents: b8e3988
Author: Andrew Onishuk <ao...@hortonworks.com>
Authored: Tue Aug 25 14:56:00 2015 +0300
Committer: Andrew Onishuk <ao...@hortonworks.com>
Committed: Tue Aug 25 14:56:00 2015 +0300

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


http://git-wip-us.apache.org/repos/asf/ambari/blob/0d426fe4/ambari-agent/src/main/package/rpm/preinstall.sh
----------------------------------------------------------------------
diff --git a/ambari-agent/src/main/package/rpm/preinstall.sh b/ambari-agent/src/main/package/rpm/preinstall.sh
index fc6719b..e135c18 100644
--- a/ambari-agent/src/main/package/rpm/preinstall.sh
+++ b/ambari-agent/src/main/package/rpm/preinstall.sh
@@ -27,7 +27,11 @@ fi
 BAK=/etc/ambari-agent/conf/ambari-agent.ini.old
 ORIG=/etc/ambari-agent/conf/ambari-agent.ini
 
+BAK_SUDOERS=/etc/sudoers.d/ambari-agent.bak
+ORIG_SUDOERS=/etc/sudoers.d/ambari-agent
+
 [ -f $ORIG ] && mv -f $ORIG $BAK
+[ -f $ORIG_SUDOERS ] && mv -f $ORIG_SUDOERS $BAK_SUDOERS
 
 if [ -d "$STACKS_FOLDER" ]
 then