[scripts] fix media/custom in major upgrade script

This step is already included in the minor upgrade script, but not
in the major upgrade script.