Update config file at startup