Fix chown happening before file is written on first start.
Fix chown happening before file is written on first start.

NREL/api-umbrella,NREL/api-umbrella,NREL/api-umbrella-router,NREL/api-umbrella,OdiloOrg/api-umbrella-router,apinf/api-umbrella,NREL/api-umbrella-router,apinf/api-umbrella,NREL/api-umbrella,apinf/api-umbrella,apinf/api-umbrella,OdiloOrg/api-umbrella-router,NREL/api-umbrella-router,apinf/api-umbrella,OdiloOrg/api-umbrella-router