#!/bin/bash if [ ! -f /usr/src/ant-*.zip ]; then echo "Hbase tar ball not found at /usr/src/hbase-*.tar.gz!!" exit fi if [ ! -f /opt/apache-ant* ]; then cd /opt/ unzip /usr/src/ant-*.zip ln -s /opt/apache-ant-* /opt/ant echo "export PATH=/opt/ant/bin/:\$PATH" >> /etc/profile fi