Script to perform an update before upgrading