#!/bin/sh

PGEXPORTER_USER="${PGEXPORTER_USER:-"pgexporter"}"
COMMAND=

if [ "$(id -u)" -eq 0 ]; then
	exec su -s /bin/sh "$PGEXPORTER_USER" -c '"$0" "$@"' -- "$COMMAND" "$@"
else
	exec "$COMMAND" "$@"
fi
