The effect of plasma temperature on electrostatic shock generated by a circularly polarized laser pulse in overdense plasma is studied by particle-in-cell simulation. Ion reflection and transmission in the collisionless electrostatic shock (CES) are investigated analytically. As the initial ion temperature is varied, a distinct transition from the laser-driven piston scenario with all ions being reflected to the CES scenario with partial ion reflection is found. The results show that at low but finite temperatures the ions are much more accelerated than if they were cold.