-
Notifications
You must be signed in to change notification settings - Fork 10
/
install-phpmyadmin.sh
30 lines (23 loc) · 1.6 KB
/
install-phpmyadmin.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
# If phpmyadmin does not exist
if [ ! -f /etc/phpmyadmin/config.inc.php ];
then
# Used debconf-get-selections to find out what questions will be asked
# This command needs debconf-utils
# Handy for debugging. clear answers phpmyadmin: echo PURGE | debconf-communicate phpmyadmin
echo 'phpmyadmin phpmyadmin/dbconfig-install boolean false' | debconf-set-selections
echo 'phpmyadmin phpmyadmin/reconfigure-webserver multiselect apache2' | debconf-set-selections
echo 'phpmyadmin phpmyadmin/app-password-confirm password vagrant' | debconf-set-selections
echo 'phpmyadmin phpmyadmin/mysql/admin-pass password vagrant' | debconf-set-selections
echo 'phpmyadmin phpmyadmin/password-confirm password vagrant' | debconf-set-selections
echo 'phpmyadmin phpmyadmin/setup-password password vagrant' | debconf-set-selections
echo 'phpmyadmin phpmyadmin/database-type select mysql' | debconf-set-selections
echo 'phpmyadmin phpmyadmin/mysql/app-pass password vagrant' | debconf-set-selections
echo 'dbconfig-common dbconfig-common/mysql/app-pass password vagrant' | debconf-set-selections
echo 'dbconfig-common dbconfig-common/mysql/app-pass password' | debconf-set-selections
echo 'dbconfig-common dbconfig-common/password-confirm password vagrant' | debconf-set-selections
echo 'dbconfig-common dbconfig-common/app-password-confirm password vagrant' | debconf-set-selections
echo 'dbconfig-common dbconfig-common/app-password-confirm password vagrant' | debconf-set-selections
echo 'dbconfig-common dbconfig-common/password-confirm password vagrant' | debconf-set-selections
apt-get -y install phpmyadmin
fi