Commit 6c34f889 authored by Marco Mariani's avatar Marco Mariani

attempt to publish admin password

parent 693e8a42
......@@ -26,6 +26,7 @@
##############################################################################
import os
import re
import subprocess
import tempfile
import textwrap
......@@ -80,7 +81,7 @@ class InitRecipe(GenericBaseRecipe):
],
stderr=subprocess.STDOUT)
self.options['admin_password'] = self.extract_password(drush_output)
self.options['admin-password'] = self.extract_password(drush_output)
# drush removes the 'w' bit from both the settings file and its
# directory.
......
[buildout]
[publish-drupal-admin-password]
recipe = slapos.cookbook:publish
drupal-admin-password = $${drupal-init:admin-password}
[drupal-init]
recipe = slapos.cookbook:drupal_init
drush-binary = ${apache-php:location}/bin/drush
php-binary = ${apache-php:location}/bin/php
settings-php = ${application-configuration:location}
htdocs = $${rootdirectory:srv}/www
#admin-password =
dependency = $${apache-php:recipe}
......@@ -26,14 +26,15 @@ location = sites/default/settings.php
[custom-application-deployment]
path = ${custom-application-deployment-template:output}
part-list = drupal-init
part-list = drupal-init publish-drupal-admin-password
[custom-application-deployment-template]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-custom.cfg.in
output = ${buildout:directory}/instance-custom.cfg
md5sum = 86a6e065a8e01416f0c028a0571615db
md5sum = 283cb53ff8cd34635703e771062db919
mode = 0644
......
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