From 2707742518b7fa49b94438b54bf15dfb8385259f Mon Sep 17 00:00:00 2001 From: Walter Date: Tue, 5 Jan 2016 09:16:59 -0500 Subject: [PATCH] Patch for #1561 Added -p back to the db setup to provide password input. #1561 --- snipeit.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/snipeit.sh b/snipeit.sh index a5a90866d3..debf92a0a2 100644 --- a/snipeit.sh +++ b/snipeit.sh @@ -222,8 +222,8 @@ case $distro in sudo chown -R www-data:www-data /var/www/ # echo "## Finished permission changes." - echo "## Input your MySQL/MariaDB root password: " - sudo mysql -u root < $dbsetup + echo "## Input your MySQL/MariaDB root password (blank if this is a fresh install): " + sudo mysql -u root -p < $dbsetup echo "## Securing Mysql" @@ -292,8 +292,8 @@ case $distro in chkconfig mysql on /sbin/service mysql start - echo "## Input your MySQL/MariaDB root password: " - mysql -u root < $dbsetup + echo "## Input your MySQL/MariaDB root password (blank if this is a fresh install): " + mysql -u root -p < $dbsetup echo "## Securing mariaDB server."; /usr/bin/mysql_secure_installation @@ -414,8 +414,8 @@ case $distro in systemctl enable mariadb.service systemctl start mariadb.service - echo "## Input your MySQL/MariaDB root password " - mysql -u root < $dbsetup + echo "## Input your MySQL/MariaDB root password (blank if this is a fresh install): " + mysql -u root -p < $dbsetup echo "## Securing mariaDB server."; echo "";