Upgrading and reseting master to production (in offline mode)