Temperature-gradient instability induced by conducting end walls