forked from extern/shorewall_code
Only issue 'done.' progress message on success
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
12eaf81dcc
commit
978e8e3849
@ -169,8 +169,10 @@ case "$COMMAND" in
|
|||||||
detect_configuration
|
detect_configuration
|
||||||
define_firewall
|
define_firewall
|
||||||
status=$?
|
status=$?
|
||||||
[ -n "$SUBSYSLOCK" -a $status -eq 0 ] && touch $SUBSYSLOCK
|
if [ $status -eq 0 ]; then
|
||||||
progress_message3 "done."
|
[ -n "$SUBSYSLOCK" ] && touch $SUBSYSLOCK
|
||||||
|
progress_message3 "done."
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
stop)
|
stop)
|
||||||
@ -225,9 +227,9 @@ case "$COMMAND" in
|
|||||||
define_firewall
|
define_firewall
|
||||||
status=$?
|
status=$?
|
||||||
if [ -n "$SUBSYSLOCK" ]; then
|
if [ -n "$SUBSYSLOCK" ]; then
|
||||||
[ $status -eq 0 ] && touch $SUBSYSLOCK || rm -f $SUBSYSLOCK
|
[ $status -eq 0 ] && touch $SUBSYSLOCK || rm -f $SUBSYSLOCK
|
||||||
fi
|
fi
|
||||||
progress_message3 "done."
|
[ $status -eq 0 ] && progress_message3 "done."
|
||||||
;;
|
;;
|
||||||
refresh)
|
refresh)
|
||||||
[ $# -ne 1 ] && usage 2
|
[ $# -ne 1 ] && usage 2
|
||||||
@ -236,7 +238,7 @@ case "$COMMAND" in
|
|||||||
detect_configuration
|
detect_configuration
|
||||||
define_firewall
|
define_firewall
|
||||||
status=$?
|
status=$?
|
||||||
progress_message3 "done."
|
[ $status -eq 0 ] && progress_message3 "done."
|
||||||
else
|
else
|
||||||
echo "$g_product is not running" >&2
|
echo "$g_product is not running" >&2
|
||||||
status=2
|
status=2
|
||||||
@ -256,10 +258,10 @@ case "$COMMAND" in
|
|||||||
progress_message3 "Clearing $g_product...."
|
progress_message3 "Clearing $g_product...."
|
||||||
clear_firewall
|
clear_firewall
|
||||||
status=0
|
status=0
|
||||||
if [ -n "$SUBSYSLOCK" ]; then
|
if [ $status -eq 0 ]; then
|
||||||
rm -f $SUBSYSLOCK
|
[ -n "$SUBSYSLOCK" ] && rm -f $SUBSYSLOCK
|
||||||
|
progress_message3 "done."
|
||||||
fi
|
fi
|
||||||
progress_message3 "done."
|
|
||||||
;;
|
;;
|
||||||
status)
|
status)
|
||||||
[ $# -ne 1 ] && usage 2
|
[ $# -ne 1 ] && usage 2
|
||||||
|
@ -181,8 +181,10 @@ case "$COMMAND" in
|
|||||||
detect_configuration
|
detect_configuration
|
||||||
define_firewall
|
define_firewall
|
||||||
status=$?
|
status=$?
|
||||||
[ -n "$SUBSYSLOCK" -a $status -eq 0 ] && touch $SUBSYSLOCK
|
if [ $status -eq 0 ]; then
|
||||||
progress_message3 "done."
|
[ -n "$SUBSYSLOCK" ] && touch $SUBSYSLOCK
|
||||||
|
progress_message3 "done."
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
@ -244,7 +246,8 @@ case "$COMMAND" in
|
|||||||
if [ -n "$SUBSYSLOCK" ]; then
|
if [ -n "$SUBSYSLOCK" ]; then
|
||||||
[ $status -eq 0 ] && touch $SUBSYSLOCK || rm -f $SUBSYSLOCK
|
[ $status -eq 0 ] && touch $SUBSYSLOCK || rm -f $SUBSYSLOCK
|
||||||
fi
|
fi
|
||||||
progress_message3 "done."
|
|
||||||
|
[ $status -eq 0 ] && progress_message3 "done."
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
refresh)
|
refresh)
|
||||||
@ -255,7 +258,7 @@ case "$COMMAND" in
|
|||||||
detect_configuration
|
detect_configuration
|
||||||
define_firewall
|
define_firewall
|
||||||
status=$?
|
status=$?
|
||||||
progress_message3 "done."
|
[ $status -eq 0 ] && progress_message3 "done."
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "$g_product is not running" >&2
|
echo "$g_product is not running" >&2
|
||||||
@ -271,6 +274,7 @@ case "$COMMAND" in
|
|||||||
if [ -n "$SUBSYSLOCK" ]; then
|
if [ -n "$SUBSYSLOCK" ]; then
|
||||||
[ $status -eq 0 ] && touch $SUBSYSLOCK || rm -f $SUBSYSLOCK
|
[ $status -eq 0 ] && touch $SUBSYSLOCK || rm -f $SUBSYSLOCK
|
||||||
fi
|
fi
|
||||||
|
[ $status -eq 0 ] && progress_message3 "done."
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
clear)
|
clear)
|
||||||
|
@ -6,6 +6,8 @@ Changes in Shorewall 4.4.17 Beta 1
|
|||||||
|
|
||||||
3) Export (param,value) pairs with EXPORTPARAMS=No.
|
3) Export (param,value) pairs with EXPORTPARAMS=No.
|
||||||
|
|
||||||
|
4) Only produce 'done.' progress message on success.
|
||||||
|
|
||||||
Changes in Shorewall 4.4.16 RC 1
|
Changes in Shorewall 4.4.16 RC 1
|
||||||
|
|
||||||
1) Fix logging for jump to nat chain.
|
1) Fix logging for jump to nat chain.
|
||||||
|
@ -14,7 +14,9 @@ VI. PROBLEMS CORRECTED AND NEW FEATURES IN PRIOR RELEASES
|
|||||||
I. P R O B L E M S C O R R E C T E D I N T H I S R E L E A S E
|
I. P R O B L E M S C O R R E C T E D I N T H I S R E L E A S E
|
||||||
----------------------------------------------------------------------------
|
----------------------------------------------------------------------------
|
||||||
|
|
||||||
None.
|
1) Previously, a 'done.' message could be printed at the end of
|
||||||
|
command processing even when the command had failed. Now, such a
|
||||||
|
message only appears if the command completed successfully.
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
----------------------------------------------------------------------------
|
||||||
I I. K N O W N P R O B L E M S R E M A I N I N G
|
I I. K N O W N P R O B L E M S R E M A I N I N G
|
||||||
|
Loading…
Reference in New Issue
Block a user