~mark-mims/charms/oneiric/drupal/trunk

« back to all changes in this revision

Viewing changes to hooks/install

  • Committer: Mark Mims
  • Date: 2011-06-01 23:31:07 UTC
  • Revision ID: git-v1:195dff4484eb554d74ef02dabeec99b285ba6533
remove more cruft

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
echo postfix postfix/mail_name string $HOSTNAME | debconf-set-selections
16
16
DEBIAN_FRONTEND=noninteractive apt-get -y install -qq postfix
17
17
 
18
 
sudo apt-get install -qqy python-mysqldb uuid pwgen
19
 
 
20
 
PASSFILE=/var/lib/ensemble/mysql.passwd 
21
 
if ! [ -f $PASSFILE ] ; then
22
 
  uuid > $PASSFILE
23
 
fi
24
 
PASSWORD=`cat $PASSFILE`
25
 
 
26
 
ensemble-log "Installing default local database, mysql"
27
 
echo mysql-server-5.1 mysql-server/root_password password $PASSWORD | debconf-set-selections
28
 
echo mysql-server-5.1 mysql-server/root_password_again password $PASSWORD | debconf-set-selections
29
 
DEBIAN_FRONTEND=noninteractive apt-get -y install -qq mysql-server
30
 
 
31
18
ensemble-log "Installing drupal with sane defaults"
32
 
echo drupal6 drupal6/mysql/admin-pass  password $PASSWORD | debconf-set-selections
33
 
echo drupal6 drupal6/database-type select  mysql | debconf-set-selections
34
19
echo drupal6 drupal6/dbconfig-upgrade  boolean false | debconf-set-selections
35
20
echo drupal6 drupal6/dbconfig-reinstall  boolean false | debconf-set-selections
36
21
echo drupal6 drupal6/internal/skip-preseed boolean false | debconf-set-selections
37
22
echo drupal6 drupal6/dbconfig-install  boolean false | debconf-set-selections
38
 
DEBIAN_FRONTEND=noninteractive apt-get -y install -qq drupal6
 
23
DEBIAN_FRONTEND=noninteractive apt-get -y install -qq --no-install-recommends drupal6
39
24
 
40
25
ensemble-log "Configure apache vhost for the drupal site"
41
26
if [ -f /etc/drupal/6/apache.conf ]; then