@@ -29,7 +29,7 @@ if [ "$1" -eq 0 ]; then # Action is uninstall
/var/lib/ambari-agent/install-helper.sh remove
fi
- chkconfig --del ambari-agent
+ chkconfig --list | grep ambari-server && chkconfig --del ambari-server
exit 0
@@ -34,7 +34,7 @@ if [ "$1" -eq 0 ]; then # Action is uninstall
/var/lib/ambari-server/install-helper.sh remove
- chkconfig --del ambari-server