Commit 1d30c56f authored by anarcat's avatar anarcat Committed by anarcat
Browse files

add a few debconf questions

parent a79eb794
#! /bin/sh
set -e
# Source debconf library.
. /usr/share/debconf/confmodule
db_get aegir/email
if [ -z "$RET" ]; then
db_set aegir/email "aegir@`hostname -f`"
fi
db_
db_input medium aegir/site || true
db_input low aegir/makefile || true
db_input low aegir/email || true
db_input low aegir/db_host || true
db_go
\ No newline at end of file
......@@ -59,6 +59,21 @@ case "$1" in
chmod 0700 $dir
done
db_get "aegir/site"
if [ ! -z "$RET" ]; then
SITE="$RET"
fi
db_get "aegir/db_host"
AEGIR_DB_HOST="$RET"
db_get "aegir/email"
EMAIL="$RET"
db_get "aegir/makefile"
if [ ! -z "$RET" ]; then
MAKEFILE="--makefile='$RET'"
fi
db_stop
su aegir -c "drush hostmaster-install --aegir_db_host='$AEGIR_DB_HOST' --client_email='$EMAIL' $MAKEFILE $SITE"
;;
abort-upgrade|abort-remove|abort-deconfigure)
......
Template:aegir/site
Type: string
_Description: URL of the hostmaster frontend
This is the main URL under which Aegir will be controlled. A Virtual
Host and Drupal website with the Aegir frontend modules
("hostmaster") will be created for that domain.
.
Leave empty to use the default (the domain of this machine).
Template:aegir/db_host
Type: string
Default: localhost
_Description: Database server hostname
This is the hostname at which the database server is available.
Template:aegir/email
Type: string
_Description: Main client email
This is the email that will receive confirmations for created sites and so on.
Template:aegir/makefile
Type: string
_Description: Makefile used to create the platform
The makefile passed to drush_make to create the hostmaster
platform. Note that this needs specific modules and profiles for the
frontend to work correctly, be careful in changing this from the
default.
.
If this is left empty, Aegir will use its internal makefile.
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment