|
@@ -13,6 +13,11 @@
|
|
|
# See the License for the specific language governing permissions and
|
|
|
# limitations under the License
|
|
|
|
|
|
+if [ "$1" -eq 1 ]; # Action is install
|
|
|
+then
|
|
|
+ chkconfig --add ambari-agent
|
|
|
+fi
|
|
|
+
|
|
|
if [ "$1" -eq 2 ]; # Action is upgrade
|
|
|
then
|
|
|
if [ -d "/etc/ambari-agent/conf.save" ]
|