Commit 2c29ee2e authored by mig5's avatar mig5 Committed by mig5

print the onetime login url after installing hostmaster

parent 95ed44b4
......@@ -4,7 +4,7 @@
* @file install the hostmaster system
*/
function drush_provision_hostmaster_install($site, $client_email) {
function drush_provision_hostmaster_install($site) {
$platform = drush_locate_root(drush_get_option(array('r', 'root'), NULL));
// verify the current platform
drush_backend_invoke('provision-verify', array(
......@@ -16,15 +16,16 @@ function drush_provision_hostmaster_install($site, $client_email) {
);
// install the hostmaster site
drush_backend_invoke('provision-install', array(
$data = drush_backend_invoke('provision-install', array(
$site,
'uri' => $site,
'root' => $platform,
'profile' => "hostmaster",
'provision_context' => "site",
'client_email' => $client_email,
'site_port' => drush_get_option('web_port', 80))
'site_port' => drush_get_option('web_port', 80)),
'GET', TRUE
);
$context = $data['context'];
drush_print('Login link is ' . $context['login_link']);
}
......@@ -30,14 +30,13 @@
#
########################################################################
# basic variables, change before release
AEGIR_DOMAIN=aegir.example.com
AEGIR_DOMAIN=aegir.example.com
AEGIR_VERSION=HEAD
AEGIR_HOME=$HOME
WEB_GROUP=www-data
# doesn't exist yet, but we need drush_prompt in HEAD
DRUSH_VERSION=All-versions-3.0-rc4
DRUSH_MAKE_VERSION=6.x-2.0-beta6
CLIENT_EMAIL="you@example.com"
# when adding a variable here, add it to the display below
......@@ -207,7 +206,7 @@ if [ ! -d $HOSTMASTER_DIR ] ; then
$DRUSH hostmaster-make $HOSTMASTER_DIR
msg "Installing hostmaster"
$DRUSH hostmaster-install --root="$HOSTMASTER_DIR" $AEGIR_DOMAIN $CLIENT_EMAIL
$DRUSH hostmaster-install --root="$HOSTMASTER_DIR" $AEGIR_DOMAIN
msg "Initializing the hosting system"
$DRUSH hosting-setup --root="$HOSTMASTER_DIR" --uri="$AEGIR_DOMAIN" -y
......
Markdown is supported
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