comment out some stuff
This commit is contained in:
@ -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"
|
||||
|
Reference in New Issue
Block a user