Write a shell script like this
for i in /home/* ; do
if [ -d "$i" ]; then
echo "found $i"
if [ -f "$i/public_html/admin/updates.php" ]; then
cp /home/updates.php $i/public_html/admin/updates.php
fi
fi
done
First if checks for directory, i.e. check for all the user directories. Then within each directory check whether the updates file exists. If it does, copy the file /home/updates.php (where you should put yours) there.
Edit: Put the code in a file applyUpdate.sh
, use chmod +x applyUpdate.sh
to make it executable and then run it using ./applyUpdate.sh