ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aonis...@apache.org
Subject [2/2] ambari git commit: AMBARI-12870. Installing Ambari-2.1.0 removes /etc/sudoers.d/ambari-agent file (aonishuk)
Date Tue, 25 Aug 2015 11:56:57 GMT
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 <aonishuk@hortonworks.com>
Authored: Tue Aug 25 14:56:00 2015 +0300
Committer: Andrew Onishuk <aonishuk@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


Mime
View raw message