Skip to content

Commit

Permalink
Updated dkan-module-init to include ahoy dkan remake
Browse files Browse the repository at this point in the history
  • Loading branch information
kducharm committed Oct 11, 2017
1 parent 784e84b commit edd626e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions dkan-module-init.sh
Expand Up @@ -28,10 +28,9 @@ if wget -q "$URL"; then
cd dkan
bash dkan-init.sh dkan --skip-init --deps
cd ..
ahoy drush "-y --verbose si minimal --sites-subdir=default --account-pass='admin' --db-url=$DATABASE_URL install_configure_form.update_status_module=\"'array\(FALSE,FALSE\)'\""
chmod +w docroot/sites/default/settings.php
printf "// DKAN Datastore Fast Import options.\n\$databases['default']['default']['pdo'] = array(\n PDO::MYSQL_ATTR_LOCAL_INFILE => 1,\n PDO::MYSQL_ATTR_USE_BUFFERED_QUERY => 1,\n);" >> docroot/sites/default/settings.php
chmod -w docroot/sites/default/settings.php
echo -ne 'y\n' | ahoy dkan drupal-rebuild $DATABASE_URL
ahoy dkan remake
echo -ne 'N\n' | ahoy dkan reinstall
else
wget -O /tmp/dkan-init.sh https://raw.githubusercontent.com/NuCivic/dkan/$DKAN_VERSION/dkan-module-init.sh
# Make sure the download was at least successful.
Expand Down Expand Up @@ -62,4 +61,4 @@ fi
ahoy drush en $DKAN_MODULE -y

#Fix for behat bug not recognizing symlinked feature files or files outside it's root. See https://jira.govdelivery.com/browse/CIVIC-1005
#cp dkan_workflow/test/features/dkan_workflow.feature dkan/test/features/.
#cp dkan_workflow/test/features/dkan_workflow.feature dkan/test/features/.

0 comments on commit edd626e

Please sign in to comment.