Fix upgrade/update and expose ports.