mirror of
https://gitlab.com/shorewall/code.git
synced 2025-01-05 13:08:50 +01:00
Return success exit status when no ipsets are saved by the script
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
bbdbdf7c47
commit
ca35f565e0
@ -8148,7 +8148,8 @@ sub create_save_ipsets() {
|
|||||||
}
|
}
|
||||||
} elsif ( $config{SAVE_IPSETS} ) {
|
} elsif ( $config{SAVE_IPSETS} ) {
|
||||||
emit( ' error_message "WARNING: No ipsets were saved"',
|
emit( ' error_message "WARNING: No ipsets were saved"',
|
||||||
' return 1',
|
" #\n # Indicate success so that the CLI doesn't attempt to save the sets\n #",
|
||||||
|
' return 0',
|
||||||
"}\n" );
|
"}\n" );
|
||||||
} else {
|
} else {
|
||||||
emit( ' true',
|
emit( ' true',
|
||||||
|
Loading…
Reference in New Issue
Block a user