If the attachment is not discharged, and a judgment is recovered in the action in favor of the plaintiff, and an execution is issued thereon, the sheriff or marshal shall sell at public auction, after publication of notice pursuant to Section 6062 of the Government Code, the vessel, with its tackle, appurtenances, appliances, furnishings, and furniture, or such interest therein as may be necessary, and shall apply the proceeds of the sale as follows:
The sheriff or marshal shall pay any balance remaining to the owner, or to the master, agent, or consignee who may have appeared on behalf of the owner, or if there is no appearance, then into court, subject to the claim of any party or parties legally entitled thereto.
Ca. Harb. and Nav. Code § 495.8