Always store the mariadb password

This commit is contained in:
Bob Mottram 2017-06-05 15:39:11 +01:00
parent 0e4ec45c74
commit d6771dcbaa
1 changed files with 1 additions and 1 deletions

View File

@ -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"