I'm making a script that installs MariaDB, and I'd like to set a root password. I've got the following in said script:
DEBIAN_FRONTEND=noninteractive
echo mariadb-server-10.0 mariadb-server-10.0/root_password password tmpsetup | debconf-set-selections
echo mariadb-server-10.0 mariadb-server-10.0/root_password_again password tmpsetup | debconf-set-selections
apt-get install -y mariadb-server
This doesn't seem to work, as I can't log into the root account with the "tmpsetup" password. What am I doing wrong?
Please try instead with
That way the changes will be applied also to mariadb-server meta-package, and not only for the specific version.