Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Example drupal install now overrides install on each provision.

  • Loading branch information...
commit 2eec66a5e2ef24fe63945842088905c6a4f384b9 1 parent b93dc67
@patcon patcon authored
Showing with 9 additions and 2 deletions.
  1. +9 −2 cookbooks-merge/ariadne/recipes/example.rb
View
11 cookbooks-merge/ariadne/recipes/example.rb
@@ -23,7 +23,7 @@
project = "example"
-bash "Installing example Drupal site..." do
+bash "Downloading Drupal..." do
user "vagrant"
group "vagrant"
cwd "/mnt/www/html"
@@ -31,6 +31,14 @@
drush -y dl drupal \
--drupal-project-rename=#{project} \
--cache
+ EOH
+ not_if "test -d /mnt/www/html/example"
+end
+
+bash "Installing example Drupal site..." do
+ user "vagrant"
+ group "vagrant"
+ code <<-EOH
drush -y si \
--root=/mnt/www/html/#{project} \
--db-url=mysqli://root:root@localhost/#{project} \
@@ -40,7 +48,6 @@
--account-name=admin \
--account-pass=admin
EOH
- not_if "test -d /mnt/www/html/example"
end
site = "#{project}.dev"
Please sign in to comment.
Something went wrong with that request. Please try again.