#!/bin/bash
#------------------------------------------------------------------------------------------
# Copyright (C), 1988-2011,Isoftstone Tech. Co., Ltd.
# File name : clear.sh
# Author : yeshanren
# Version : 1.00
# Date : 2013/4/01
# Description : cleare temp UOA
# Others : NA
# Function List :
#
# History :
# 1. Date : 2013/4/01
# Author : yeshanren
# Modification : Modify file
#------------------------------------------------------------------------------------------
filedata=$JBOSS_HOME/server/default/data
filelog=$JBOSS_HOME/server/default/log
filetemp=$JBOSS_HOME/server/default/tmp
filework=$JBOSS_HOME/server/default/work
#jbosshome = ${HOME}
pwd
#$cd ${JBOSS_HOME}/service/default
cd tools
./stop_bmp.sh
cd ${HOME}/jboss/server/default
#cd service/default/
pwd
echo "the path is rigt"
if [ -d $filedata ];
then
echo "this is not filedir"
fi
rm -rf data log tmp work
echo "delete the file is right"
cd ${JBOSS_HOME}/../
rm -rf log
echo "log is deleted"
pwd
cd tools
#./stop_bmp.sh
./start_bmp.sh