Add -y to apt-get line in  ubuntu shell script.