Copy configuration file after upgrade

We delete the contents of htdocs/* so need to write this again