Update shell script and template