From 423b7672265469d7bce991d16eaa3a35552f4d9f Mon Sep 17 00:00:00 2001 From: Adam Malone Date: Tue, 21 Jan 2014 17:08:40 +1100 Subject: [PATCH] Altered the drush database updates to be more simple. --- samples/domain_fix.sh | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) mode change 100644 => 100755 samples/domain_fix.sh diff --git a/samples/domain_fix.sh b/samples/domain_fix.sh old mode 100644 new mode 100755 index dc31ece..6b695b0 --- a/samples/domain_fix.sh +++ b/samples/domain_fix.sh @@ -19,10 +19,7 @@ $source = $argv[4]; // First ensure the domain module is installed. We do this by checking // existence of the domain table in the appropriate database. -$domain = `(cat << EOF -SHOW TABLES LIKE 'domain'; -EOF -) | drush @$site.$env ah-sql-cli --db=$db`; +$domain=`echo "SHOW TABLES LIKE 'domain'" | drush @$site.$env ah-sql-cli --db=$db"`; if (!$domain) { $returns[] = "Domain module not installed, aborting"; @@ -56,11 +53,7 @@ else { if (isset($info[$env])) { $to = $info[$env]; $returns[] = "Updating domain table to update $domain to $to"; - `(cat << EOF -UPDATE domain SET subdomain = "$to" where machine_name = "$domain"; -EOF -) | drush @$site.$env ah-sql-cli --db=$db`; - + echo "UPDATE domain SET subdomain = "$to" where machine_name = "$domain" | drush @$site.$env ah-sql-cli --db=$db"; } } }