I would like to write the following Bash Script:
When installing LAMP like this, it would ask me a root password for the MySQL installation. I would like to bash script it.
sudo apt-get install lamp-server^
Can I do it like this to pass the variable as a parameter so it would not ask me about it during installation?
rootPassword="MyRootPassword";
sudo apt-get install lamp-server^ -y $rootPassword