Like any init script, the
https://unix.stackexchange.com/questions/210939/what-user-runs-the-commands-defined-in-etc-rc-local/etc/rc.localscript is executed by therootuser and you do not need to prepend eithersuorsudoto the commands/programs that need to run as root.