Skip to content

Commit

Permalink
Fixes #1059: db-scrub script should not fire on ACSF. (#1060)
Browse files Browse the repository at this point in the history
  • Loading branch information
grasmash authored Feb 9, 2017
1 parent 0ce4ea8 commit b29e8c4
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions template/hooks/common/post-db-copy/db-scrub.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ target_env="$2"
db_name="$3"
source_env="$4"

echo "$site.$target_env: Scrubbing database $db_name"
drush @$site.$target_env sql-sanitize
drush @$site.$target_env cache-rebuild
acsf_file="/mnt/files/$AH_SITE_GROUP.$AH_SITE_ENVIRONMENT/files-private/sites.json"
if [ ! -f $acsf_file ]; then
echo "$site.$target_env: Scrubbing database $db_name"
drush @$site.$target_env sql-sanitize
drush @$site.$target_env cache-rebuild
fi

0 comments on commit b29e8c4

Please sign in to comment.