Create update.sh

Moved duplicated code out of individual deployment scripts into this shared version