File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Expand file tree Collapse file tree 2 files changed +5
-2
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
Original file line number Diff line number Diff line change 1111# ----------------------------------------------------------#
1212
1313# Argument definition
14- user=" admin"
1514domain=$HOSTNAME
15+ user=" $( $HESTIA /bin/v-search-domain-owner " $domain " web) "
16+ [[ -z " $user " ]] && user=" admin"
1617
1718# Includes
1819source $HESTIA /func/main.sh
You can’t perform that action at this time.
0 commit comments