comment out some stuff

This commit is contained in:
2021-07-18 14:29:26 -06:00
parent 4eba1bb195
commit d0b1bae345
5 changed files with 264 additions and 4 deletions

View File

@ -1,6 +1,6 @@
# Example Usage
# ssh user@host "sudo -n bash -s" -- < ./commands/db-setup.sh 'rootPass' "maindb" "maindbPass"
# ssh user@host "sudo -n bash -s" -- < ./commands/db/db-setup.sh 'rootPass' "maindb" "maindbPass"
if [ "$1" == "-h" ]; then
echo "Usage:"
@ -27,6 +27,8 @@ export DEBIAN_FRONTEND="noninteractive"
if [ "$rootPassword" == "$confirmPassword" ]; then
echo -e "mysql-server mysql-server/root_password password $rootPassword" | debconf-set-selections
echo -e "mysql-server mysql-server/root_password_again password $rootPassword" | debconf-set-selections
apt-get update
apt-get dist-upgrade
apt-get -y install mysql-server
else
echo "Passwords do not match cancelling the installation"