I have multiple users on one machine with FreeBSD7.3. Each user has his own site (only one). Each site is a copy of master-site with slight differences (ie. database configuration, template files).
It's like many Wordpresses with different users on one machine.
The problem is:
I've made a patch for master-site. How i can update all of this sites at once, rightly changing user permissions and ownership.
IE: I have patch like it:
And i have many users with the same directory structure and few other files: