Commit a927143e authored by gauthier's avatar gauthier
Browse files

For HSS

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@6363 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent 02b1e908
...@@ -45,6 +45,8 @@ check_for_root_rights ...@@ -45,6 +45,8 @@ check_for_root_rights
####################################### #######################################
# Default PARAMETERS # Default PARAMETERS
###################################### ######################################
declare OAI_DB_ADMIN_USER_NAME="root"
declare OAI_DB_ADMIN_USER_PASSWORD="linux"
#only one could be set at the time #only one could be set at the time
declare BUILD_LTE="" # ENB, EPC, HSS, NONE declare BUILD_LTE="" # ENB, EPC, HSS, NONE
...@@ -622,14 +624,10 @@ build_hss(){ ...@@ -622,14 +624,10 @@ build_hss(){
echo_info "5. compile HSS" echo_info "5. compile HSS"
# Bad behaviour of $OAI_CLEAN with ./.lock_oaibuild ... # Bad behaviour of $OAI_CLEAN with ./.lock_oaibuild ...
output=$(compile_hss $CLEAN_HSS >> bin/install_log.txt 2>&1 ) compile_hss $CLEAN_HSS
hss_compiled=$? hss_compiled=$?
if [ $hss_compiled -eq 1 ]; then
echo_error "Failed in compiling hss target: check the installation log file bin/install_log.txt"
exit 1
fi
check_for_hss_executable check_for_hss_executable
echo_info "finished hss target: check the installation log file bin/install_log.txt" echo_info "finished hss target"
###################################### ######################################
# Check certificates # # Check certificates #
...@@ -652,27 +650,10 @@ build_hss(){ ...@@ -652,27 +650,10 @@ build_hss(){
###################################### ######################################
echo_info "6. create HSS database (for EURECOM SIM CARDS)" echo_info "6. create HSS database (for EURECOM SIM CARDS)"
hss_db_created=1 hss_db_created=1
USER="hssadmin" create_hss_database $OAI_DB_ADMIN_USER_NAME $OAI_DB_ADMIN_USER_PASSWORD
PW="" if [ $? -eq 1 ]; then
output=$(create_hss_database $USER $PW ) echo_fatal "hss DB not created"
hss_db_created=$?
if [ $hss_db_created = 0 ]; then
echo_warning "hss DB not created"
fi
######################################
# install hss
######################################
echo_info "7. install the binary file"
if [ $hss_compiled -eq 0 ]; then
echo_success "target hss built, DB created and installed in the bin directory"
echo "target hss built, DB created, and installed in the bin directory" >> bin/${oai_build_date}
cp -rf $OPENAIRCN_DIR/OPENAIRHSS/conf $OPENAIR_TARGETS/bin
$SUDO cp $OPENAIR_TARGETS/bin/conf/hss_fd.local.conf /etc/openair-hss
rm -f $OPENAIR_TARGETS/bin/openair-hss
cp -pv $OPENAIRCN_DIR/OPENAIRHSS/objs/openair-hss $OPENAIR_TARGETS/bin/
fi fi
} }
...@@ -830,14 +811,14 @@ if [ $RUN -ne 0 ]; then ...@@ -830,14 +811,14 @@ if [ $RUN -ne 0 ]; then
'HSS') 'HSS')
echo "############# running HSS #############" echo "############# running HSS #############"
cd $OPENAIR_TARGETS/bin cd $OPENAIRCN_DIR/OPENAIRHSS/objs
if [ $RUN_GDB -eq 0 ]; then if [ $RUN_GDB -eq 0 ]; then
$SUDO exec ./openair-hss -c conf/hss.local.conf $SUDO exec ./openair-hss -c ./conf/hss.conf
else else
touch ~/.gdb_hss touch ~/.gdb_hss
chmod 777 ~/.gdb_hss chmod 777 ~/.gdb_hss
echo "file ./openair-hss" > ~/.gdb_hss echo "file ./openair-hss" > ~/.gdb_hss
echo "set args -c conf/hss.local.conf" >> ~/.gdb_hss echo "set args -c ./conf/hss.conf" >> ~/.gdb_hss
echo "run" >> ~/.gdb_hss echo "run" >> ~/.gdb_hss
$SUDO gdb -nh -x ~/.gdb_hss 2>&1 $SUDO gdb -nh -x ~/.gdb_hss 2>&1
fi 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