File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -89,7 +89,9 @@ if [ ! -f "${IPSET_PATH}/${IPSET_FILE}.iplist" ] || [ "$force" = "yes" ]; then
8989 # Advanced: execute script with the same basename for aditional pre-processing
9090 # ex:
9191 if [ -x " ${IPSET_PATH} /${IPSET_FILE} .sh" ]; then
92- setpriv --clear-groups --reuid nobody --regid nogroup -- ${IPSET_PATH} /${IPSET_FILE} .sh " $ip_name " " $iplist_tempfile "
92+ preprocess_output=" $( cat " $iplist_tempfile " | setpriv --clear-groups --reuid nobody --regid nogroup -- ${IPSET_PATH} /${IPSET_FILE} .sh " $ip_name " " $iplist_tempfile " ) "
93+ check_result $? " Preprocessing script failed (${IPSET_FILE} .sh)"
94+ [[ " $preprocess_output " ]] && echo " $preprocess_output " > " $iplist_tempfile "
9395 fi
9496
9597 elif [[ " $data_source " =~ ^script:/ ]]; then
You can’t perform that action at this time.
0 commit comments