MT#6817 add ngcpcfg apply result to output

mr3.3.1
Victor Seva 12 years ago
parent fcb8961489
commit f77b10ca6a

@ -27,11 +27,14 @@ function list
function cfg_debug_off function cfg_debug_off
{ {
local res
if [ -z $SKIP ]; then if [ -z $SKIP ]; then
echo "$(date) - Setting config debug off" echo "$(date) - Setting config debug off"
${BIN_DIR}/config_debug.pl off ${DOMAIN} ${BIN_DIR}/config_debug.pl off ${DOMAIN}
ngcpcfg apply ngcpcfg apply
if [ "$?" != "0" ]; then res = $?
if [ "$res" != "0" ]; then
echo "$(date) - ngcpcfg apply returned $res"
error_flag=4 error_flag=4
fi fi
echo "$(date) - Setting config debug off. Done[$error_flag]" echo "$(date) - Setting config debug off. Done[$error_flag]"
@ -71,8 +74,9 @@ if [ -z $SKIP ]; then
( timeout 60 ${BIN_DIR}/pid_watcher.py &> ${LOG_DIR}/pid_watcher.log )& ( timeout 60 ${BIN_DIR}/pid_watcher.py &> ${LOG_DIR}/pid_watcher.log )&
fi fi
ngcpcfg apply ngcpcfg apply
if [ "$?" != "0" ]; then res = $?
echo "$(date) - ngcp apply returned != 0" if [ "$res" != "0" ]; then
echo "$(date) - ngcp apply returned $res"
echo "$(date) - Done[3]" echo "$(date) - Done[3]"
cfg_debug_off cfg_debug_off
exit 3 exit 3

Loading…
Cancel
Save