#!/bin/bash -x # patch_everywhere.sh: Do a patch the root of each server # Use the full patch of the patch. # Example: ./patch_everywhere /var/www/update_php_staging.patch # Author: rfay 2009-11-16 for item in 1 2 3 4 5 6 7 8 9 10 do cd /var/www/staging$item/htdocs patch -p0 < $1 done