Effect of plasma temperature on electrostatic shock generation and ion acceleration by laser