From d6771dcbaa559eb6c84540fd2fcf6a0f729c46a9 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 5 Jun 2017 15:39:11 +0100 Subject: [PATCH] Always store the mariadb password --- src/freedombone-utils-database | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/freedombone-utils-database b/src/freedombone-utils-database index 66f87d58..98c8c3db 100755 --- a/src/freedombone-utils-database +++ b/src/freedombone-utils-database @@ -140,8 +140,8 @@ function install_mariadb { else MARIADB_PASSWORD="$(openssl rand -base64 32 | cut -c1-${MINIMUM_PASSWORD_LENGTH})" fi - ${PROJECT_NAME}-pass -u root -a mariadb -p "$MARIADB_PASSWORD" fi + ${PROJECT_NAME}-pass -u root -a mariadb -p "$MARIADB_PASSWORD" debconf-set-selections <<< "mariadb-server mariadb-server/root_password password $MARIADB_PASSWORD" debconf-set-selections <<< "mariadb-server mariadb-server/root_password_again password $MARIADB_PASSWORD"