Merge branch 'GP-0_ryanmkurtz_PR-5277_zebrapurring_fix-bsd-sed-error'

This commit is contained in:
Ryan Kurtz 2023-09-11 11:30:58 -04:00
commit 078b0d2c7b

View File

@ -42,7 +42,7 @@ else
fi
# Identify server process owner if set within server.conf
OWNER="$(grep '^wrapper.app.account=' "${CONFIG}" | sed -e 's/^.*=\(.*\)\s*.*$/\1/')"
OWNER="$(grep '^wrapper.app.account=' "${CONFIG}" | cut -d '=' -f 2)"
if [ -z "${OWNER}" -o "${OWNER}" = "$(whoami)" ]; then
VMARGS="-DUserAdmin.invocation=$(basename "${SCRIPT_FILE}")"