Fix srvAdmin compatibility with BSD systems

This commit is contained in:
zebrapurring
2023-04-30 22:26:14 +02:00
parent 80ccdadeba
commit f6217673e6
+1 -1
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}")"