mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-25 09:56:11 +08:00
Fix srvAdmin compatibility with BSD systems
This commit is contained in:
@@ -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}")"
|
||||
|
||||
Reference in New Issue
Block a user