Skip to content
This repository has been archived by the owner on Feb 11, 2022. It is now read-only.

Commit

Permalink
Prevent multiple site installs in a single build
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperg committed Oct 5, 2011
1 parent 2dcf27a commit 8ee3ec1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1106,7 +1106,8 @@ This initializes a Drupal site using a installation profile.
Configuration of which installation profile and database to use in done in
`build.properties`. -->
<target name="site-install"
depends="init, setup-phing-drush">
depends="init, setup-phing-drush"
unless="project.installed">
<drush command="site-install" assume="yes">
<option name="db-url">${drupal.db.url}</option>
<param>${drupal.profile}</param>
Expand All @@ -1118,6 +1119,9 @@ Configuration of which installation profile and database to use in done in
mode="0755" failonerror="true"/>
<chmod file="${project.drupal.dir}/sites/default/default.settings.php"
mode="0755" failonerror="true"/>

<!-- Set property to prevent target from being executed multiple times -->
<property name="project.installed" value="true"/>
</target>

<!-- ### Download and enable a project/module -->
Expand Down

0 comments on commit 8ee3ec1

Please sign in to comment.