You should still be able to get the flu shot when you have a sinus infection. Minor infections are not a reason to avoid the flu shot.
On the other hand, you should avoid the nasal spray flu vaccine when you have a sinus infection. The nasal spray works when it contacts the skin on the inside of your nose. If the skin is blocked by a layer of nasal discharge, the nasal spray will not work.