|
@@ -31,7 +31,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 ] && echo "Moving $ORIG_SUDOERS to $BAK_SUDOERS. Please restore the file if you were using it for ambari-agent non-root functionality" && mv -f $ORIG_SUDOERS $BAK_SUDOERS
|
|
|
|
|
|
if [ -d "$STACKS_FOLDER" ]
|
|
|
then
|