- shorten variable

This commit is contained in:
Richard Alam 2010-07-07 14:58:28 +00:00
parent dcee771b83
commit a005f545a3

View File

@ -82,18 +82,18 @@ is_vm() {
if [ "$(is_redhat)" ]; then
TOMCAT="tomcat6"
RED5_DIR="/usr/share/red5"
ACTIVEMQ_DIRECTORY="/usr/share/activemq"
ACTIVEMQ_DIR="/usr/share/activemq"
TOMCAT6_LOGS="/var/log/${TOMCAT}"
elif [ "$(is_gentoo)" ]; then
TOMCAT="tomcat-6"
RED5_DIR="/usr/share/red5"
ACTIVEMQ_DIRECTORY="/usr/share/activemq"
ACTIVEMQ_DIR="/usr/share/activemq"
TOMCAT6_LOGS="/var/lib/${TOMCAT}/logs"
else
if [ "$(is_ubuntu)" ]; then
TOMCAT="tomcat6"
RED5_DIR="/usr/share/red5"
ACTIVEMQ_DIRECTORY="/usr/share/activemq"
ACTIVEMQ_DIR="/usr/share/activemq"
TOMCAT6_LOGS="/var/lib/${TOMCAT}/logs"
fi
fi
@ -646,7 +646,7 @@ check_state() {
#
# Check for potential problems
#
if ! ps aux | grep "$ACTIVEMQ_DIRECTORY" > /dev/null; then
if ! ps aux | grep "$ACTIVEMQ_DIR" > /dev/null; then
print_header
echo " activeMQ: -- not running --"
fi