Put 'shorewall6 refresh' in trunk

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@9217 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2008-12-31 20:27:21 +00:00
parent dc65849d65
commit 53bd365b46

View File

@ -2749,12 +2749,18 @@ sub create_chainlist_reload($) {
emit( 'exec 3>&-', emit( 'exec 3>&-',
'', '',
'progress_message2 "Running iptables-restore..."', 'progress_message2 "Running iptables-restore..."',
'', '' );
'cat ${VARDIR}/.iptables-restore-input | $IPTABLES_RESTORE -n # Use this nonsensical form to appease SELinux',
'if [ $? != 0 ]; then', if ( $family == F_IPV4 ) {
emit ( 'cat ${VARDIR}/.iptables-restore-input | $IPTABLES_RESTORE -n # Use this nonsensical form to appease SELinux' );
} else {
emit ( 'cat ${VARDIR}/.iptables-restore-input | $IP6TABLES_RESTORE -n # Use this nonsensical form to appease SELinux' );
}
emit ( 'if [ $? != 0 ]; then',
' fatal_error "iptables-restore Failed. Input is in ${VARDIR}/.iptables-restore-input"', ' fatal_error "iptables-restore Failed. Input is in ${VARDIR}/.iptables-restore-input"',
"fi\n" "fi\n"
); );
} else { } else {
emit('true'); emit('true');
} }