I'm trying to create an script to install a LAMP server automatically and unatended in debian.
The thing is that I realized that debconf-set-selections seems to be not working with phpmyadmin.
In fact, if I run..
debconf-get-selections | grep phpmyadmin
..it doesn't return anything and it's supposed to return the available options that you can choose and use.
Is it possible that in the last versions of debconf phpmyadmin is not available?
This is my code and it does nothing.. I mean, it still asks for the options:
def installPHPMyAdmin():
subprocess.call("debconf-set-selections <<< " +
"\"phpmyadmin phpmyadmin/dbconfig-install boolean true\"")
subprocess.call("debconf-set-selections <<< \"phpmyadmin phpmyadmin/mysql/admin-pass " +
"password " + mysqlPass + "\"")
subprocess.call("debconf-set-selections <<< \"phpmyadmin phpmyadmin/mysql/app-pass " +
"password " + phpMyAdminPass + "\"")
subprocess.call("debconf-set-selections <<< \"phpmyadmin phpmyadmin/app-password-confirm " +
"password " + phpMyAdminPass + "\"")
subprocess.call("debconf-set-selections <<< \"phpmyadmin phpmyadmin/reconfigure-webserver " +
"multiselect none\"")
return subprocess.call("apt-get install -y phpmyadmin")