Any signs existing at the time of the passage of this section which violate any provisions thereof shall be deemed a nonconforming sign and may be continued, maintained and repaired upon the present premises or location; provided that such sign was lawful under any prior ordinance and that required permits and inspections were obtained.