Commit da44ffc7 authored by gauthier's avatar gauthier
Browse files

create OUTPUT DIR,

config file with hostname

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@5383 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent 701aba4f
......@@ -147,7 +147,7 @@ cd $THIS_SCRIPT_PATH
#######################################################
# FIND CONFIG FILES
#######################################################
SEARCHED_CONFIG_FILE_ENB="enb*.conf"
SEARCHED_CONFIG_FILE_ENB="enb*_$HOSTNAME.conf"
CONFIG_FILE_ENB=`find $CONFIG_FILE_DIR -iname $SEARCHED_CONFIG_FILE_ENB`
if [ a$CONFIG_FILE_ENB != a ]; then
if [ -f $CONFIG_FILE_ENB ]; then
......@@ -161,7 +161,7 @@ else
exit 1
fi
SEARCHED_CONFIG_FILE_EPC="epc.*.*.conf"
SEARCHED_CONFIG_FILE_EPC="epc*_$HOSTNAME.conf"
CONFIG_FILE_EPC=`find $CONFIG_FILE_DIR -iname $SEARCHED_CONFIG_FILE_EPC`
if [ a$CONFIG_FILE_EPC != a ]; then
if [ -f $CONFIG_FILE_EPC ]; then
......@@ -253,7 +253,7 @@ test_tun_network
cd $THIS_SCRIPT_PATH
if [ ! -d "OUTPUT/"$HOSTNAME ]
then
bash_exec "mkdir -m 777 ./OUTPUT/$HOSTNAME"
bash_exec "mkdir -p -m 777 ./OUTPUT/$HOSTNAME"
echo_success "Created OUTPUT/$HOSTNAME directory"
fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment