Automatically provisioning Node-Red


I've written a shell script to provision a new server instance of our platform. I've accomplished this, save one issue:

I'm using a mysql database node and I need to somehow inject the credentials for DB access in order for the DB access to be set without manually typing in the username / pw.

Can someone help guide me as to where these credentials are stored, and more importantly, how to set them after installation?